Updated several more build files in base in view of switch to /usr directory for non-elf files

Upgraded base/c-ares to 1.19.1
Disabled native language support in base/bison,cpio,flex
This commit is contained in:
PktSurf 2024-10-16 21:28:07 +05:30
parent 5e2dcab884
commit 64cd7eb8fe
29 changed files with 77 additions and 64 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=bison app=bison
version=3.1 version=3.1
build=3sml build=1sml
homepage="https://www.gnu.org/software/bison/bison.html" homepage="https://www.gnu.org/software/bison/bison.html"
download="https://ftp.gnu.org/gnu/bison/bison-$version.tar.xz" download="https://ftp.gnu.org/gnu/bison/bison-$version.tar.xz"
desc="parser generator similar to yacc" desc="parser generator similar to yacc"
@ -18,7 +18,9 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= --prefix=/usr \
--bindir=/bin \
--disable-nls
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg

View file

@ -1,6 +1,6 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=c-ares app=c-ares
version=1.16.1 version=1.19.1
build=1sml build=1sml
homepage="https://c-ares.haxx.se/" homepage="https://c-ares.haxx.se/"
download="https://c-ares.haxx.se/download/c-ares-$version.tar.gz" download="https://c-ares.haxx.se/download/c-ares-$version.tar.gz"
@ -18,17 +18,17 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--enable-shared --enable-shared
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg
cp $srcdir/LICENSE $pkgdocs/ cp LICENSE.md $pkgdocs/
mkfinalpkg mkfinalpkg
} }
sha512sums=" sha512sums="
34e15bb43478caf302a721b080ce1e955b8d9e91145330214c456a0f2b157b7f759eb450a0e8ce94089468347a51bbb0f457de9a889541fc0f5e8fa59f9a2d58 c-ares-1.16.1.tar.lz d0eff8bd3cba8d1ecb9d19761eda0899efc4d0f29d8cc13757fe4154601cab5a5aafad9b40a9c4117fbe1964c493a58c389a274246f8fe3ac34fd7e4fadaafb6 c-ares-1.19.1.tar.lz
" "

View file

@ -21,25 +21,25 @@ build() {
# Update to certdata.txt from $srcdir: # Update to certdata.txt from $srcdir:
xzcat $srcdir/certdata-${version}.txt.xz > mozilla/certdata.txt xzcat $srcdir/certdata-${version}.txt.xz > mozilla/certdata.txt
mkdir -p $pkg/share/ca-certificates $pkg/bin $pkg/usr/sbin mkdir -p $pkg/usr/share/ca-certificates $pkg/bin $pkg/usr/sbin
make make
make install DESTDIR=$pkg CERTSDIR=/share/ca-certificates make install DESTDIR=$pkg CERTSDIR=/usr/share/ca-certificates
cp docs/copyright $pkgdocs/COPYRIGHT cp docs/copyright $pkgdocs/COPYRIGHT
mkdir -p $pkg/etc/ca-certificates/update.d mkdir -p $pkg/etc/ca-certificates/update.d
printf "# Automatically generated by $app-$version \n#\n" \ printf "# Automatically generated by $app-$version \n#\n" \
> $pkg/etc/ca-certificates.conf.new > $pkg/etc/ca-certificates.conf.new
( cd $pkg/share/ca-certificates ( cd $pkg/usr/share/ca-certificates
find . -name '*.crt' | sort | cut -b3- find . -name '*.crt' | sort | cut -b3-
) >> $pkg/etc/ca-certificates.conf.new ) >> $pkg/etc/ca-certificates.conf.new
install -Dm 755 $srcdir/setup.11.cacerts $pkg/var/log/setup/setup.11.cacerts install -Dm 755 $srcdir/setup.11.cacerts $pkg/var/log/setup/setup.11.cacerts
install -Dm 644 sbin/update-ca-certificates.8 $pkg/share/man/man8/update-ca-certificates.8 install -Dm 644 sbin/update-ca-certificates.8 $pkg/usr/share/man/man8/update-ca-certificates.8
# Why do people hardcode paths in Makefiles! # Why do people hardcode paths in Makefiles!
mv $pkg/usr/sbin/* $pkg/bin/ mv $pkg/usr/sbin/* $pkg/bin/
rm -rf $pkg/usr rmdir $pkg/usr/sbin
mkfinalpkg mkfinalpkg
} }

Binary file not shown.

View file

@ -1,7 +1,7 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=ccache app=ccache
version=3.7.9 version=3.7.9
build=2sml build=1sml
homepage="https://ccache.dev/" homepage="https://ccache.dev/"
download="https://github.com/ccache/ccache/releases/download/v$version/ccache-$version.tar.xz" download="https://github.com/ccache/ccache/releases/download/v$version/ccache-$version.tar.xz"
desc="Compiler cache to speed up re-compilation of C/C++ code by caching previous compiles" desc="Compiler cache to speed up re-compilation of C/C++ code by caching previous compiles"
@ -17,9 +17,10 @@ prepbuilddir() {
} }
build() { build() {
LDFLAGS="-static" \
./configure \ ./configure \
--prefix= --prefix=/usr \
--sysconfdir=/etc \
--bindir=/bin
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg

View file

@ -1,7 +1,7 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=coreutils app=coreutils
version=8.32 version=8.32
build=3sml build=1sml
homepage="https://www.gnu.org/software/coreutils/coreutils.html" homepage="https://www.gnu.org/software/coreutils/coreutils.html"
download="http://ftp.gnu.org/gnu/coreutils/coreutils-$version.tar.xz" download="http://ftp.gnu.org/gnu/coreutils/coreutils-$version.tar.xz"
desc="Core GNU utilities" desc="Core GNU utilities"
@ -22,7 +22,7 @@ build() {
FORCE_UNSAFE_CONFIGURE=1 \ FORCE_UNSAFE_CONFIGURE=1 \
LDFLAGS="-static" \ LDFLAGS="-static" \
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--bindir=/bin \ --bindir=/bin \
--libexecdir=/lib \ --libexecdir=/lib \
--without-gmp --without-gmp

View file

@ -19,7 +19,9 @@ prepbuilddir() {
build() { build() {
CFLAGS+=" -fcommon" \ CFLAGS+=" -fcommon" \
./configure \ ./configure \
--prefix= --prefix=/usr \
--bindir=/bin \
--disable-nls
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg

View file

@ -1,9 +1,9 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=crda app=crda
version=4.14 version=4.14
build=2sml build=1sml
homepage="https://wireless.wiki.kernel.org/en/developers/regulatory/crda" homepage="https://wireless.wiki.kernel.org/en/developers/regulatory/crda"
requires="libnl libgcrypt python-m2crypto" requires="libnl libgcrypt python-m2crypto wireless-regdb"
desc="Udev wrapper for communicating between kernel and userspace" desc="Udev wrapper for communicating between kernel and userspace"
prepbuilddir() { prepbuilddir() {
@ -24,8 +24,8 @@ prepbuilddir() {
} }
build() { build() {
make PREFIX="/" SBINDIR="/bin" make PREFIX="/usr" SBINDIR="/bin"
make PREFIX="/" SBINDIR="/bin" install DESTDIR=$pkg make PREFIX="/usr" SBINDIR="/bin" install DESTDIR=$pkg
cp LICENSE $pkgdocs/ cp LICENSE $pkgdocs/

View file

@ -19,10 +19,9 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--sbindir=/bin \ --sysconfdir=/etc \
--libdir=/lib \ --sbindir=/bin
--sysconfdir=/etc
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg

0
base/curl/cacert-fetch.sh Executable file → Normal file
View file

View file

@ -19,8 +19,9 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--bindir=/bin \
--with-libssh2 \ --with-libssh2 \
--without-ca-bundle \ --without-ca-bundle \
--with-ca-path=/etc/ssl/certs \ --with-ca-path=/etc/ssl/certs \

View file

@ -1,7 +1,7 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=db app=db
version=6.2.23 version=6.2.23
build=2sml build=1sml
homepage="https://www.oracle.com/database/technologies/related/berkeleydb.html" homepage="https://www.oracle.com/database/technologies/related/berkeleydb.html"
download="http://download.oracle.com/berkeley-db/db-$version.tar.gz" download="http://download.oracle.com/berkeley-db/db-$version.tar.gz"
desc="Berkeley embedded database library" desc="Berkeley embedded database library"
@ -19,11 +19,7 @@ prepbuilddir() {
} }
build() { build() {
if [[ $arch = aarch64 ]]; then db_atomic=x86/gcc-assembly
db_atomic=gcc-builtin
else
db_atomic=x86/gcc-assembly
fi
cd build_unix cd build_unix
@ -32,7 +28,8 @@ build() {
db_cv_mmap_extend=yes \ db_cv_mmap_extend=yes \
db_cv_atomic="$db_atomic" \ db_cv_atomic="$db_atomic" \
../dist/configure \ ../dist/configure \
--prefix= \ --prefix=/usr \
--bindir=/bin \
--enable-shared \ --enable-shared \
--disable-static \ --disable-static \
--enable-dbm \ --enable-dbm \

View file

@ -1,10 +1,10 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=dcron app=dcron
version=4.5 version=4.5
build=2sml build=1sml
homepage="http://www.jimpryor.net/linux/dcron.html" homepage="http://www.jimpryor.net/linux/dcron.html"
download="http://www.jimpryor.net/linux/releases/dcron-$version.tar.gz" download="http://www.jimpryor.net/linux/releases/dcron-$version.tar.gz"
desc="Dillons Cron daemon" desc="Dillons cron daemon"
requires="musl" requires="musl"
prepbuilddir() { prepbuilddir() {
@ -28,9 +28,9 @@ build() {
install -Dm 4711 crontab $pkg/bin/crontab install -Dm 4711 crontab $pkg/bin/crontab
install -Dm 755 $srcdir/run-parts $pkg/bin/run-parts install -Dm 755 $srcdir/run-parts $pkg/bin/run-parts
install -Dm 644 crontab.1 $pkg/share/man/man1/crontab.1 install -Dm 644 crontab.1 $pkg/usr/share/man/man1/crontab.1
install -Dm 644 crond.8 $pkg/share/man/man8/crond.8 install -Dm 644 crond.8 $pkg/usr/share/man/man8/crond.8
install -Dm 644 $srcdir/run-parts.8 $pkg/share/man/man8/run-parts.8 install -Dm 644 $srcdir/run-parts.8 $pkg/usr/share/man/man8/run-parts.8
# Create some other stuff we need # Create some other stuff we need
mkdir -p $pkg/etc/cron.{hourly,daily,weekly,monthly} mkdir -p $pkg/etc/cron.{hourly,daily,weekly,monthly}

View file

@ -20,7 +20,8 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= --prefix=/usr \
--bindir=/bin
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg

View file

@ -19,7 +19,7 @@ prepbuilddir() {
build() { build() {
make make
make install DESTDIR=$pkg prefix= mandir="/share/man" sbindir= make install DESTDIR=$pkg prefix=/usr sbindir=/bin mandir="/usr/share/man"
cp LICENSE $pkgdocs/ cp LICENSE $pkgdocs/

View file

@ -18,7 +18,8 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= --prefix=/usr \
--bindir=/bin
make CFLAGS="$CFLAGS" make CFLAGS="$CFLAGS"
make install DESTDIR=$pkg make install DESTDIR=$pkg

View file

@ -18,7 +18,7 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--enable-static=no --enable-static=no
make make

View file

@ -19,7 +19,8 @@ prepbuilddir() {
build() { build() {
CFLAGS+=" -std=c99" \ CFLAGS+=" -std=c99" \
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--bindir=/bin \
--sbindir=/bin --sbindir=/bin
make make

View file

@ -19,7 +19,8 @@ prepbuilddir() {
build() { build() {
mkdir -p smbuild && cd smbuild mkdir -p smbuild && cd smbuild
cmake .. \ cmake .. \
-DCMAKE_INSTALL_PREFIX= \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_BINDIR=/bin \
-DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_LIBDIR=lib
make make

View file

@ -1,7 +1,7 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=expat app=expat
version=2.5.0 version=2.5.0
build=2sml build=1sml
homepage="https://downloads.sourceforge.net/project/expat/" homepage="https://downloads.sourceforge.net/project/expat/"
download="https://downloads.sourceforge.net/project/expat/expat/$version/expat-$version.tar.bz2" download="https://downloads.sourceforge.net/project/expat/expat/$version/expat-$version.tar.bz2"
desc="C library for parsing XML" desc="C library for parsing XML"
@ -18,7 +18,8 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--bindir=/bin \
--disable-static --disable-static
make make

View file

@ -19,7 +19,8 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--bindir=/bin \
--disable-static --disable-static
make make

View file

@ -18,7 +18,7 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--enable-shared \ --enable-shared \
--disable-static --disable-static

View file

@ -22,14 +22,15 @@ prepbuilddir() {
build() { build() {
LDFLAGS="-static" \ LDFLAGS="-static" \
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--libexecdir=/lib --bindir=/bin \
--libexecdir=/libexec
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg
# Provided by mlocate # Provided by mlocate
rm -f $pkg/bin/{locate,updatedb} $pkg/share/man/man1/{locate.1,updatedb.1} rm -f $pkg/bin/{locate,updatedb} $pkg/usr/share/man/man1/{locate.1,updatedb.1}
cp COPYING $pkgdocs/ cp COPYING $pkgdocs/

View file

@ -1,7 +1,7 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=flex app=flex
version=2.6.4 version=2.6.4
build=3sml build=1sml
homepage="https://github.com/westes/flex" homepage="https://github.com/westes/flex"
download="https://github.com/westes/flex/archive/refs/tags/v$version.tar.gz" download="https://github.com/westes/flex/archive/refs/tags/v$version.tar.gz"
desc="fast lexical analyzer generator" desc="fast lexical analyzer generator"
@ -19,8 +19,10 @@ prepbuilddir() {
build() { build() {
CPPFLAGS="$CFLAGS -DSTDC_HEADERS" \ CPPFLAGS="$CFLAGS -DSTDC_HEADERS" \
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--disable-static --bindir=/bin \
--disable-static \
--disable-nls
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg

View file

@ -1,7 +1,7 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=fmt app=fmt
version=8.1.0 version=8.1.0
build=2sml build=1sml
homepage="https://github.com/fmtlib/fmt" homepage="https://github.com/fmtlib/fmt"
download="https://github.com/fmtlib/fmt/archive/refs/tags/$version.tar.gz" download="https://github.com/fmtlib/fmt/archive/refs/tags/$version.tar.gz"
desc="Formatting library for C++" desc="Formatting library for C++"
@ -19,8 +19,8 @@ prepbuilddir() {
build() { build() {
mkdir -p smbuild && cd smbuild mkdir -p smbuild && cd smbuild
cmake .. \ cmake .. \
-DCMAKE_INSTALL_PREFIX="" \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR="lib" \ -DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DFMT_TEST=OFF \ -DFMT_TEST=OFF \
-Wno-dev -Wno-dev

View file

@ -1,7 +1,7 @@
# Maintainer: PktSurf <smlinux@pktsurf.in> # Maintainer: PktSurf <smlinux@pktsurf.in>
app=zip app=zip
version=30 version=30
build=2sml build=1sml
homepage="http://www.info-zip.org/Zip.html" homepage="http://www.info-zip.org/Zip.html"
download="https://downloads.sourceforge.net/infozip/zip$version.tar.gz" download="https://downloads.sourceforge.net/infozip/zip$version.tar.gz"
desc="Compression and file packaging utility" desc="Compression and file packaging utility"
@ -20,7 +20,7 @@ build() {
make -f unix/Makefile generic_gcc \ make -f unix/Makefile generic_gcc \
CFLAGS="$CFLAGS" CFLAGS="$CFLAGS"
make prefix="$pkg" -f unix/Makefile install MANDIR="$pkg/share/man/man1" make prefix="$pkg" -f unix/Makefile install MANDIR="$pkg/usr/share/man/man1"
cp LICENSE $pkgdocs/ cp LICENSE $pkgdocs/

View file

@ -18,7 +18,7 @@ prepbuilddir() {
build() { build() {
./configure \ ./configure \
--prefix= --prefix=/usr
make make
make install DESTDIR=$pkg make install DESTDIR=$pkg

View file

@ -20,7 +20,8 @@ build() {
sed -i '/autoheader/d' Makefile.in sed -i '/autoheader/d' Makefile.in
./configure \ ./configure \
--prefix= \ --prefix=/usr \
--bindir=/bin \
--enable-libc-musl --enable-libc-musl
make make

View file

@ -20,8 +20,9 @@ build() {
mkdir -p smbuild && cd smbuild mkdir -p smbuild && cd smbuild
cmake ../build/cmake \ cmake ../build/cmake \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX= \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR="lib" \ -DCMAKE_INSTALL_BINDIR=/bin \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZSTD_ZLIB_SUPPORT=ON \ -DZSTD_ZLIB_SUPPORT=ON \
-DZSTD_LZMA_SUPPORT=ON \ -DZSTD_LZMA_SUPPORT=ON \
-DZSTD_LZ4_SUPPORT=ON \ -DZSTD_LZ4_SUPPORT=ON \