mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
userland: several ports
This commit is contained in:
+3
-3
@@ -2,11 +2,11 @@ name=e2fsprogs
|
||||
revision=1
|
||||
from_source=e2fsprogs
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils"
|
||||
deps="base"
|
||||
hostdeps="xgcc xbinutils pkgconfig libtool"
|
||||
deps="base libuuid"
|
||||
|
||||
configure() {
|
||||
${source_dir}/configure --host=x86_64-astral --prefix=${prefix}
|
||||
${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-libuuid
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
name=libuuid
|
||||
revision=1
|
||||
from_source=util-linux
|
||||
imagedeps="build-essential python3 python3-dev"
|
||||
hostrundeps="automake autoconf xgcc xbinutils libstdc++-v3 pkgconfig libtool"
|
||||
deps="base gmp mpfr mpc binutils python"
|
||||
|
||||
configure() {
|
||||
cp -rp ${source_dir}/* .
|
||||
rm -rf po
|
||||
#./configure --host=x86_64-astral --prefix=${prefix} --enable-libuuid --enable-elf-shlibs --enable-subset
|
||||
./configure --host=x86_64-astral --prefix=${prefix} --enable-libuuid --disable-all-programs --enable-po --disable-nls --disable-static
|
||||
}
|
||||
|
||||
#build() {
|
||||
# make -j ${parallelism} libuuid.la
|
||||
#}
|
||||
|
||||
package() {
|
||||
make DESTDIR="${dest_dir}" install
|
||||
mv -v ${dest_dir}/lib/* ${dest_dir}/${prefix}/lib
|
||||
rm -r ${dest_dir}/lib
|
||||
rm ${dest_dir}/${prefix}/lib/libuuid.so{,.1}
|
||||
ln -sv libuuid.so.1.3.0 ${dest_dir}/${prefix}/lib/libuuid.so.1
|
||||
ln -sv libuuid.so.1 ${dest_dir}/${prefix}/lib/libuuid.so
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
name=meson
|
||||
from_source=meson
|
||||
revision=1
|
||||
hostdeps="python"
|
||||
deps="base"
|
||||
|
||||
build() {
|
||||
cp -rp ${source_dir}/* .
|
||||
}
|
||||
|
||||
package() {
|
||||
/usr/bin/env python3 setup.py install --prefix=${prefix} --root=${dest_dir}
|
||||
sed -i -e 's/\/usr\/local\/bin\/python3/\/usr\/bin\/env python3/g' ${dest_dir}/${prefix}/bin/meson
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
name=ninja
|
||||
from_source=ninja
|
||||
revision=1
|
||||
hostdeps="xgcc xbinutils pkgconfig libstdc++-v3"
|
||||
imagedeps="build-essential python3"
|
||||
deps="base"
|
||||
|
||||
configure() {
|
||||
CC=x86_64-astral-gcc CXX=x86_64-astral-g++ LD=x86_64-astral-g++ python3 ${source_dir}/configure.py --verbose --platform astral --host astral
|
||||
}
|
||||
|
||||
build() {
|
||||
ninja
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p ${dest_dir}/${prefix}/bin/
|
||||
mkdir -p ${dest_dir}/${prefix}/share/bash-completion/completions
|
||||
mkdir -p ${dest_dir}/${prefix}/share/zsh/site-functions
|
||||
install -vm755 ninja ${dest_dir}/${prefix}/bin/ninja
|
||||
install -vDm644 ${source_dir}/misc/bash-completion ${dest_dir}/${prefix}/share/bash-completion/completions/ninja
|
||||
install -vDm644 ${source_dir}/misc/zsh-completion ${dest_dir}/${prefix}/share/zsh/site-functions/_ninja
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
name=parted
|
||||
revision=1
|
||||
from_source=parted
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils pkgconfig libtool"
|
||||
deps="base ncurses libuuid readline"
|
||||
|
||||
configure() {
|
||||
cp -rp ${source_dir}/* .
|
||||
./configure --host=x86_64-astral --prefix=${prefix} --disable-device-mapper --disable-nls --enable-shared --disable-static
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j ${parallelism}
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR=${dest_dir}
|
||||
}
|
||||
+2
-2
@@ -3,12 +3,12 @@ revision=1
|
||||
from_source=python
|
||||
imagedeps="build-essential zlib1g-dev"
|
||||
hostdeps="xgcc xbinutils pkgconfig python"
|
||||
deps="base"
|
||||
deps="base zlib"
|
||||
|
||||
configure() {
|
||||
echo "ac_cv_file__dev_ptmx=yes" > /tmp/configsite
|
||||
echo "ac_cv_file__dev_ptc=no" >> /tmp/configsite
|
||||
CONFIG_SITE=/tmp/configsite ${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --build=x86_64 --with-build-python=python3 --disable-ipv6 --enable-shared
|
||||
CONFIG_SITE=/tmp/configsite ${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --build=x86_64 --disable-ipv6 --enable-shared
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ name=readline
|
||||
revision=1
|
||||
from_source=readline
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils"
|
||||
hostdeps="xgcc xbinutils libtool pkgconfig"
|
||||
deps="base ncurses"
|
||||
|
||||
configure() {
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
name=xz
|
||||
revision=1
|
||||
from_source=xz
|
||||
imagedeps="build-essential"
|
||||
hostdeps="xgcc xbinutils pkgconfig libtool"
|
||||
deps="base"
|
||||
|
||||
configure() {
|
||||
${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --disable-static
|
||||
}
|
||||
|
||||
build() {
|
||||
make -j ${parallelism}
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR=${dest_dir}
|
||||
}
|
||||
Reference in New Issue
Block a user