update: rename lfs-12.2 to lfs
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
pkgname=acl
|
||||
pkgver=2.3.2
|
||||
pkgdesc='Access control list utilities, libraries and headers'
|
||||
homepage='https://savannah.nongnu.org/projects/acl'
|
||||
license=('LGPL')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.savannah.gnu.org/releases/${pkgname}/${sources[0]}")
|
||||
md5sums=("590765dee95907dbc3c856f7255bd669")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
pkgname=attr
|
||||
pkgver=2.5.2
|
||||
pkgrel=1
|
||||
pkgdesc='Extended attribute support library for ACL support'
|
||||
arch=('x86_64')
|
||||
url='https://savannah.nongnu.org/projects/attr'
|
||||
license=('LGPL')
|
||||
depends=('glibc')
|
||||
makedepends=('gettext')
|
||||
replaces=('xfsattr')
|
||||
provides=('xfsattr' 'libattr.so')
|
||||
conflicts=('xfsattr')
|
||||
backup=('etc/xattr.conf')
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://download.savannah.gnu.org/releases/${pkgname}/${sources[0]}")
|
||||
md5sums=("227043ec2f6ca03c0948df5517f9c927")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
sed -i '/nfs/d' xattr.conf
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--sysconfdir=/etc \
|
||||
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
pkgname=autoconf
|
||||
pkgver=2.72
|
||||
pkgdesc="A GNU tool for automatically configuring source code"
|
||||
license=('GPL2' 'GPL3' 'custom')
|
||||
homepage="https://www.gnu.org/software/autoconf"
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("1be79f7106ab6767f18391c5e22be701")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
install -Dm644 COPYING.EXCEPTION "$pkgdir"/usr/share/licenses/autoconf/COPYING.EXCEPTION
|
||||
|
||||
# remove unwanted file
|
||||
# rm -vf "$pkgdir"/usr/share/info/standards.info
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
pkgname=automake
|
||||
pkgver=1.17
|
||||
pkgdesc="A GNU tool for automatically creating Makefiles"
|
||||
license=('GPL')
|
||||
url="https://www.gnu.org/software/automake"
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("7ab3a02318fee6f5bd42adfc369abf10")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --docdir=/usr/share/doc/${pkgname}-${pkgver}
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
pkgname=bash
|
||||
_basever=5.2
|
||||
_patchlevel=32
|
||||
pkgver=${_basever}.${_patchlevel}
|
||||
pkgdesc='The GNU Bourne Again shell'
|
||||
license=('GPL-3.0-or-later')
|
||||
url='https://www.gnu.org/software/bash'
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("f204835b2e06c06e37b5ad776ff907f4")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--without-bash-malloc \
|
||||
--with-installed-readline \
|
||||
bash_cv_strtold_broken=no \
|
||||
--docdir=/usr/share/doc/bash-${pkgver}
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
chown -R leaf .
|
||||
su -s /usr/bin/expect leaf << "EOF"
|
||||
set timeout -1
|
||||
spawn make tests
|
||||
expect eof
|
||||
lassign [wait] _ _ _ value
|
||||
exit $value
|
||||
EOF
|
||||
#chown -R root .
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
ln -sv bash "${pkgdir}/usr/bin/sh"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
pkgname=bc
|
||||
pkgver=6.7.6
|
||||
pkgdesc='An arbitrary precision calculator language'
|
||||
homepage="https://git.gavinhoward.com/gavin/bc"
|
||||
license=('GPL-3.0-only')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://github.com/gavinhoward/bc/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
||||
md5sums=("a47aa5e4e7395fbcd159a9228613b97b")
|
||||
|
||||
options=(!strip)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
CFLAGS+=" -O3 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" \
|
||||
CC=gcc \
|
||||
./configure --prefix=/usr -G -r
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
pkgname=binutils
|
||||
pkgver=2.43.1
|
||||
pkgdesc='A set of programs to assemble and manipulate binary and object files'
|
||||
homepage='https://www.gnu.org/software/binutils/'
|
||||
license=(GPL-2.0-or-later GPL-3.0-or-later LGPL-2.0-or-later LGPL-3.0-or-later GFDL-1.3 FSFAP)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://sourceware.org/pub/binutils/releases/${sources[0]}")
|
||||
md5sums=("9202d02925c30969d1917e4bad5a2320")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
mkdir -v build
|
||||
cd build
|
||||
}
|
||||
|
||||
src_build() {
|
||||
../configure --prefix=/usr \
|
||||
--sysconfdir="${pkgdir}"/etc \
|
||||
--with-lib-path=/usr/lib:/usr/local/lib \
|
||||
--enable-gold \
|
||||
--enable-ld=default \
|
||||
--enable-plugins \
|
||||
--enable-shared \
|
||||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
--enable-new-dtags \
|
||||
--with-system-zlib \
|
||||
--enable-default-hash-style=gnu
|
||||
make tooldir=/usr
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make -k CFLAGS_FOR_TARGET="-O2 -g" \
|
||||
CXXFLAGS="-O2 -no-pie -fno-PIC" \
|
||||
CFLAGS="-O2 -no-pie" \
|
||||
LDFLAGS="" \
|
||||
check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make prefix="${pkgdir}"/usr tooldir="${pkgdir}"/usr install
|
||||
rm -fv "${pkgdir}"/usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
pkgname=bison
|
||||
pkgver=3.8.2
|
||||
pkgdesc="The GNU general-purpose parser generator"
|
||||
license=('GPL-3.0-or-later')
|
||||
url="https://www.gnu.org/software/bison/bison.html"
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("c28f119f405a2304ff0a7ccdcc629713")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.8.2
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
pkgname=bzip2
|
||||
pkgver=1.0.8
|
||||
pkgdesc="A high-quality data compression program"
|
||||
license=('BSD')
|
||||
homepage="https://sourceware.org/bzip2/"
|
||||
sources=("bzip2-1.0.8.tar.gz"
|
||||
"bzip2-1.0.8-install_docs-1.patch"
|
||||
)
|
||||
urls=("https://www.sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz"
|
||||
"https://www.linuxfromscratch.org/patches/lfs/12.2/bzip2-1.0.8-install_docs-1.patch"
|
||||
)
|
||||
md5sums=("67e051268d0c475ea773822f7500d0e5"
|
||||
"6a5ac7e89b791aae556de0f745916f7f"
|
||||
)
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
patch -Np1 -i "${DIST_DIR}/${pkgname}-${pkgver}/${sources[1]}"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
|
||||
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
|
||||
|
||||
make -f Makefile-libbz2_so CC="gcc $CFLAGS $CPPFLAGS $LDFLAGS"
|
||||
make clean
|
||||
make CC="gcc $CFLAGS $CPPFLAGS $LDFLAGS"
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make PREFIX="${pkgdir}/usr" install
|
||||
cp -av libbz2.so.* "${pkgdir}/usr/lib"
|
||||
ln -sv libbz2.so.1.0.8 "${pkgdir}/usr/lib/libbz2.so"
|
||||
cp -v bzip2-shared "${pkgdir}/usr/bin/bzip2"
|
||||
for i in usr/bin/{bzcat,bunzip2}; do
|
||||
ln -sfv bzip2 "${pkgdir}/$i"
|
||||
done
|
||||
rm -fv "${pkgdir}/usr/lib/libbz2.a"
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
pkgname=dejagnu
|
||||
pkgver=1.6.3
|
||||
pkgdesc='Framework for testing other programs'
|
||||
homepage='https://www.gnu.org/software/dejagnu/'
|
||||
license=(GPL)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=(https://ftp.gnu.org/gnu/dejagnu/${pkgname}-${pkgver}.tar.gz)
|
||||
md5sums=("68c5208c58236eba447d7d6d1326b821")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
mkdir -v build
|
||||
cd build
|
||||
}
|
||||
|
||||
src_build() {
|
||||
../configure --prefix=/usr
|
||||
makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
|
||||
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -v -dm755 "${pkgdir}/usr/share/doc/dejagnu-${pkgver}"
|
||||
install -v -m644 doc/dejagnu.{html,txt} "${pkgdir}/usr/share/doc/dejagnu-${pkgver}"
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=expat
|
||||
pkgver=2.6.4
|
||||
pkgdesc="An XML parser library"
|
||||
homepage="https://libexpat.github.io/"
|
||||
license=(MIT)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://prdownloads.sourceforge.net/${pkgname}/${sources[0]}")
|
||||
md5sums=("101fe3e320a2800f36af8cf4045b45c7")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/${pkgname}-${pkgver}
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -v -m644 doc/*.{html,css} "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||
install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}/"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
pkgname=expect
|
||||
pkgver=5.45.4
|
||||
pkgdesc='A tool for automating interactive applications'
|
||||
homepage='https://www.nist.gov/el/msid/expect.cfm'
|
||||
license=(custom)
|
||||
sources=("${pkgname}${pkgver}.tar.gz"
|
||||
"expect-5.45.4-gcc14-1.patch"
|
||||
)
|
||||
urls=("https://prdownloads.sourceforge.net/expect/expect${pkgver}.tar.gz"
|
||||
"https://www.linuxfromscratch.org/patches/lfs/12.2/expect-5.45.4-gcc14-1.patch"
|
||||
)
|
||||
md5sums=("00fce8de158422f5ccd2666512329bd2"
|
||||
"0b8b5ac411d011263ad40b0664c669f0"
|
||||
)
|
||||
|
||||
|
||||
src_prepare() {
|
||||
if ! python3 -c 'from pty import spawn; spawn(["echo", "ok"])'; then
|
||||
leaf_error "PTY issue. Cannot build."
|
||||
fi
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
patch -Np1 -i ${DIST_DIR}/${pkgname}-${pkgver}/${sources[1]}
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--with-tcl=/usr/lib \
|
||||
--enable-shared \
|
||||
--disable-rpath \
|
||||
--mandir=/usr/share/man \
|
||||
--with-tclinclude=/usr/include
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
ln -svf expect5.45.4/libexpect5.45.4.so "${pkgdir}/usr/lib"
|
||||
|
||||
install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README"
|
||||
# avoid file conflict with the more powerful mkpasswd from the whois package
|
||||
mv -v "$pkgdir"/usr/bin/mkpasswd{,-expect}
|
||||
mv -v "$pkgdir"/usr/share/man/man1/mkpasswd{,-expect}.1
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=file
|
||||
pkgver=5.45
|
||||
pkgdesc='File type identification utility'
|
||||
license=('custom')
|
||||
homepage='https://www.darwinsys.com/file/'
|
||||
sources=("$pkgname-$pkgver.tar.gz")
|
||||
urls=("https://astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz")
|
||||
md5sums=("26b2a96d4e3a8938827a1e572afd527a")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
pkgname=flex
|
||||
pkgver=2.6.4
|
||||
pkgdesc="A tool for generating text-scanning programs"
|
||||
url="https://github.com/westes/flex"
|
||||
license=('custom')
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=(
|
||||
"https://github.com/westes/flex/releases/download/v$pkgver/flex-$pkgver.tar.gz"
|
||||
)
|
||||
md5sums=("2882e3179748cc9f9c23ec593d6adc8d")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--docdir=/usr/share/doc/flex-2.6.4 \
|
||||
--disable-static
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
ln -sv flex "${pkgdir}/usr/bin/lex"
|
||||
ln -sv flex.1 "${pkgdir}/usr/share/man/man1/lex.1"
|
||||
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
pkgname="gcc"
|
||||
pkgver="14.2.0"
|
||||
pkgdesc=""
|
||||
homepage="https://gcc.gnu.org"
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/gcc/${pkgname}-${pkgver}/${sources[0]}")
|
||||
md5sums=("2268420ba02dc01821960e274711bde0")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
case $(uname -m) in
|
||||
x86_64)
|
||||
sed -e '/m64=/s/lib64/lib/' \
|
||||
-i.orig gcc/config/i386/t-linux64
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_build() {
|
||||
mkdir -v build
|
||||
pushd build > /dev/null
|
||||
../configure --prefix=/usr \
|
||||
LD=ld \
|
||||
--enable-languages=c,c++ \
|
||||
--enable-default-pie \
|
||||
--enable-default-ssp \
|
||||
--enable-host-pie \
|
||||
--disable-multilib \
|
||||
--disable-bootstrap \
|
||||
--disable-fixincludes \
|
||||
--with-system-zlib
|
||||
make
|
||||
popd
|
||||
}
|
||||
|
||||
src_check() {
|
||||
pushd build > /dev/null
|
||||
ulimit -s -H unlimited
|
||||
sed -e '/cpython/d' -i ../gcc/testsuite/gcc.dg/plugin/plugin.exp
|
||||
sed -e 's/no-pic /&-no-pie /' -i ../gcc/testsuite/gcc.target/i386/pr113689-1.c
|
||||
sed -e 's/300000/(1|300000)/' -i ../libgomp/testsuite/libgomp.c-c++-common/pr109062.c
|
||||
sed -e 's/{ target nonpic } //' \
|
||||
-e '/GOTPCREL/d' -i ../gcc/testsuite/gcc.target/i386/fentryname3.c
|
||||
|
||||
chown -R leaf .
|
||||
su leaf -c "PATH=$PATH make -k check"
|
||||
../contrib/test_summary | grep -A7 Summ
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd build > /dev/null
|
||||
make DESTDIR="$pkgdir" install
|
||||
chown -R root:root \
|
||||
"$pkgdir"/usr/lib/gcc/$(gcc -dumpmachine)/14.2.0/include{,-fixed}
|
||||
ln -sv ../bin/cpp "$pkgdir"/usr/lib
|
||||
ln -sv gcc.1 "$pkgdir"/usr/share/man/man1/cc.1
|
||||
install -d -v -m755 "$pkgdir/usr/lib/bfd-plugins"
|
||||
ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/14.2.0/liblto_plugin.so \
|
||||
"$pkgdir"/usr/lib/bfd-plugins/
|
||||
mkdir -pv "$pkgdir"/usr/share/gdb/auto-load/usr/lib
|
||||
mv -v "$pkgdir"/usr/lib/*gdb.py "$pkgdir"/usr/share/gdb/auto-load/usr/lib
|
||||
popd
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
pkgname=gdbm
|
||||
pkgver=1.24
|
||||
pkgdesc="GNU database library"
|
||||
homepage="https://www.gnu.org/software/gdbm"
|
||||
license=(GPL-3.0-or-later)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("c780815649e52317be48331c1773e987")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--enable-libgdbm-compat
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
pkgname=gettext
|
||||
pkgver=0.22.5
|
||||
pkgdesc="GNU internationalization library"
|
||||
homepage="https://www.gnu.org/software/gettext/"
|
||||
license=(
|
||||
GFDL-1.2-only
|
||||
GPL-2.0-only
|
||||
GPL-2.0-or-later
|
||||
LGPL-2.0-only
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("3ae5580599d84be93e6213930facb2db")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/gettext-0.22.5
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
leaf_record_message "If zh_CN.UTF-8 has been defined, then 5 tests are known to fail without libunistring:\n\ttest-ctype_alnum\n\ttest-ctype_alpha\n\ttest-ctype_graph\n\ttest-ctype_print\n\ttest-ctype_punct"
|
||||
make -k check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
chmod -v 0755 "${pkgdir}/usr/lib/preloadable_libintl.so"
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
pkgname="glibc"
|
||||
pkgver=2.40
|
||||
sources=("glibc-2.40.tar.xz"
|
||||
"glibc-2.40-fhs-1.patch"
|
||||
"nsswitch.conf"
|
||||
"ld.so.conf"
|
||||
"tzdata2024a.tar.gz"
|
||||
)
|
||||
urls=("https://ftp.gnu.org/gnu/glibc/glibc-2.40.tar.xz"
|
||||
"https://www.linuxfromscratch.org/patches/lfs/12.2/glibc-2.40-fhs-1.patch"
|
||||
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs-12.2-systemd/glibc-2.40/nsswitch.conf"
|
||||
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs-12.2-systemd/glibc-2.40/ld.so.conf"
|
||||
"https://www.iana.org/time-zones/repository/releases/tzdata2024a.tar.gz"
|
||||
)
|
||||
md5sums=("b390feef233022114950317f10c4fa97"
|
||||
"9a5997c3452909b1769918c759eff8a2"
|
||||
"4caf37ca10aacf7f7bfabddf915e9d25"
|
||||
"79220f5a36182b7160e0cf567dc64129"
|
||||
"2349edd8335245525cc082f2755d5bf4"
|
||||
)
|
||||
license=(GPL-2.0-or-later LGPL-2.1-or-later)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
patch -Np1 -i "${DIST_DIR}/${pkgname}-${pkgver}/${sources[1]}"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
mkdir -pv build
|
||||
cd build
|
||||
echo "rootsbindir=/usr/sbin" > configparms
|
||||
../configure --prefix=/usr \
|
||||
--disable-werror \
|
||||
--enable-kernel=4.19 \
|
||||
--enable-stack-protector=strong \
|
||||
--disable-nscd \
|
||||
libc_cv_slibdir=/usr/lib
|
||||
make
|
||||
}
|
||||
|
||||
_skip_test() {
|
||||
test=${1}
|
||||
file=${2}
|
||||
sed -i "/\b${test} /d" "${srcdir}/${file}"
|
||||
}
|
||||
|
||||
src_check() {
|
||||
_skip_test tst-lchmod io/Makefile
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${srcdir}/build"
|
||||
install -d "${pkgdir}/etc"
|
||||
touch "${pkgdir}/etc/ld.so.conf"
|
||||
sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile
|
||||
make DESTDIR="${pkgdir}" install
|
||||
sed '/RTLDLIST=/s@/usr@@g' -i "${pkgdir}/usr/bin/ldd"
|
||||
|
||||
localedef -i C -f UTF-8 C.UTF-8
|
||||
localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
|
||||
localedef -i de_DE -f ISO-8859-1 de_DE
|
||||
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
||||
localedef -i de_DE -f UTF-8 de_DE.UTF-8
|
||||
localedef -i el_GR -f ISO-8859-7 el_GR
|
||||
localedef -i en_GB -f ISO-8859-1 en_GB
|
||||
localedef -i en_GB -f UTF-8 en_GB.UTF-8
|
||||
localedef -i en_HK -f ISO-8859-1 en_HK
|
||||
localedef -i en_PH -f ISO-8859-1 en_PH
|
||||
localedef -i en_US -f ISO-8859-1 en_US
|
||||
localedef -i en_US -f UTF-8 en_US.UTF-8
|
||||
localedef -i es_ES -f ISO-8859-15 es_ES@euro
|
||||
localedef -i es_MX -f ISO-8859-1 es_MX
|
||||
localedef -i fa_IR -f UTF-8 fa_IR
|
||||
localedef -i fr_FR -f ISO-8859-1 fr_FR
|
||||
localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
|
||||
localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
|
||||
localedef -i is_IS -f ISO-8859-1 is_IS
|
||||
localedef -i is_IS -f UTF-8 is_IS.UTF-8
|
||||
localedef -i it_IT -f ISO-8859-1 it_IT
|
||||
localedef -i it_IT -f ISO-8859-15 it_IT@euro
|
||||
localedef -i it_IT -f UTF-8 it_IT.UTF-8
|
||||
localedef -i ja_JP -f EUC-JP ja_JP
|
||||
localedef -i ja_JP -f SHIFT_JIS ja_JP.SJIS 2> /dev/null || true
|
||||
localedef -i ja_JP -f UTF-8 ja_JP.UTF-8
|
||||
localedef -i nl_NL@euro -f ISO-8859-15 nl_NL@euro
|
||||
localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
|
||||
localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
|
||||
localedef -i se_NO -f UTF-8 se_NO.UTF-8
|
||||
localedef -i ta_IN -f UTF-8 ta_IN.UTF-8
|
||||
localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
|
||||
localedef -i zh_CN -f GB18030 zh_CN.GB18030
|
||||
localedef -i zh_HK -f BIG5-HKSCS zh_HK.BIG5-HKSCS
|
||||
localedef -i zh_TW -f UTF-8 zh_TW.UTF-8
|
||||
localedef -i zh_CN -f UTF-8 zh_CN.UTF-8
|
||||
|
||||
if [ ! -f /etc/nsswitch.conf ]; then
|
||||
install -m644 "${DIST_DIR}/${pkgname}-${pkgver}/nsswitch.conf" "${pkgdir}/etc/nsswitch.conf"
|
||||
fi
|
||||
|
||||
tar -xf "${DIST_DIR}/${pkgname}-${pkgver}/tzdata2024a.tar.gz"
|
||||
ZONEINFO=${pkgdir}/usr/share/zoneinfo
|
||||
mkdir -pv $ZONEINFO/{posix,right}
|
||||
for tz in etcetera southamerica northamerica europe africa antarctica \
|
||||
asia australasia backward; do
|
||||
zic -L /dev/null -d $ZONEINFO ${tz}
|
||||
zic -L /dev/null -d $ZONEINFO/posix ${tz}
|
||||
zic -L leapseconds -d $ZONEINFO/right ${tz}
|
||||
done
|
||||
cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
|
||||
zic -d $ZONEINFO -p America/New_York
|
||||
unset ZONEINFO
|
||||
|
||||
if [ ! -f /etc/ld.so.conf ]; then
|
||||
install -m644 "${DIST_DIR}/${pkgname}-${pkgver}/ld.so.conf" "${pkgdir}/etc/ld.so.conf"
|
||||
fi
|
||||
}
|
||||
|
||||
src_preinstall() {
|
||||
install -vm755 "${pkgdir}"/usr/lib/*.so.* /usr/lib
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Begin /etc/ld.so.conf
|
||||
/usr/local/lib
|
||||
/opt/lib
|
||||
@@ -0,0 +1,15 @@
|
||||
# Begin /etc/nsswitch.conf
|
||||
|
||||
passwd: files systemd
|
||||
group: files systemd
|
||||
shadow: files systemd
|
||||
|
||||
hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns
|
||||
networks: files
|
||||
|
||||
protocols: files
|
||||
services: files
|
||||
ethers: files
|
||||
rpc: files
|
||||
|
||||
# End /etc/nsswitch.conf
|
||||
@@ -0,0 +1,32 @@
|
||||
pkgname=gmp
|
||||
pkgver=6.3.0
|
||||
pkgdesc='A free library for arbitrary precision arithmetic'
|
||||
homepage='https://gmplib.org/'
|
||||
license=(GPL-2.0-or-later
|
||||
LGPL-3.0-or-later)
|
||||
sources=(gmp-$pkgver.tar.xz)
|
||||
urls=("https://ftp.gnu.org/gnu/gmp/${sources[0]}")
|
||||
md5sums=("956dc04e864001a9c22429f761f2c283")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--enable-cxx \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/gmp-6.3.0
|
||||
make
|
||||
make html
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
make DESTDIR="$pkgdir" install-html
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=gperf
|
||||
pkgver=3.1
|
||||
pkgdesc="Perfect hash function generator"
|
||||
homepage="https://www.gnu.org/software/gperf/"
|
||||
license=('GPL-3.0-or-later')
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("9e251c0a618ad0824b51117d5d9db87e")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.1
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
pkgname=grep
|
||||
pkgver=3.11
|
||||
pkgdesc='A string search utility'
|
||||
license=('GPL3')
|
||||
homepage='https://www.gnu.org/software/grep/'
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=('7c9bbd74492131245f7cdb291fa142c0')
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
sed -i "s/echo/#echo/" src/egrep.sh
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
pkgname="iana-etc"
|
||||
pkgver="20240806"
|
||||
pkgdesc='/etc/protocols and /etc/services provided by IANA'
|
||||
homepage="https://www.iana.org/protocols"
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=('https://github.com/Mic92/iana-etc/releases/download/20240806/iana-etc-20240806.tar.gz')
|
||||
md5sums=("ea3c37c00d22f1159fc3b7d988de8476")
|
||||
license=('custom:none')
|
||||
|
||||
distdir=${DIST_DIR}/${pkgname}-${pkgver}
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -d "${pkgdir}/etc"
|
||||
cp services protocols "${pkgdir}/etc"
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
pkgname=inetutils
|
||||
pkgver=2.5
|
||||
pkgdesc="A collection of common network programs"
|
||||
homepage="https://www.gnu.org/software/inetutils/"
|
||||
license=('GPL-3.0-or-later')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("9e5a6dfd2d794dc056a770e8ad4a9263")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
sed -i 's/def HAVE_TERMCAP_TGETENT/ 1/' telnet/telnet.c
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--localstatedir=/var \
|
||||
--disable-logger \
|
||||
--disable-whois \
|
||||
--disable-rcp \
|
||||
--disable-rexec \
|
||||
--disable-rlogin \
|
||||
--disable-rsh \
|
||||
--disable-servers
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -d -m 755 "${pkgdir}/usr/sbin/"
|
||||
mv -v "${pkgdir}"/usr/{,s}bin/ifconfig
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
pkgname=intltool
|
||||
pkgver=0.51.0
|
||||
pkgdesc="The internationalization tool collection"
|
||||
homepage="https://launchpad.net/intltool"
|
||||
license=('GPL')
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://launchpad.net/intltool/trunk/0.51.0/+download/${sources[0]}")
|
||||
md5sums=("12e517cac2b57a0121cda351570f1e63")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
sed -i 's:\\\${:\\\$\\{:' intltool-update.in
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -v -Dm644 doc/I18N-HOWTO "${pkgdir}/usr/share/doc/intltool-0.51.0/I18N-HOWTO"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
pkgname=kmod
|
||||
pkgver=33
|
||||
pkgdesc="Linux kernel module management tools and library"
|
||||
url="https://github.com/kmod-project/kmod"
|
||||
license=('LGPL-2.1-or-later' 'GPL-2.0-or-later')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://www.kernel.org/pub/linux/utils/kernel/${pkgname}/${sources[0]}")
|
||||
md5sums=("c451c4aa61521adbe8af147f498046f8")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--with-openssl \
|
||||
--with-xz \
|
||||
--with-zstd \
|
||||
--with-zlib \
|
||||
--disable-manpages
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -d -m 755 "${pkgdir}/usr/sbin"
|
||||
install -dm0755 "${pkgdir}"/{etc,usr/lib}/{depmod,modprobe}.d
|
||||
for target in depmod insmod modinfo modprobe rmmod; do
|
||||
ln -sfv ../bin/kmod "${pkgdir}/usr/sbin/$target"
|
||||
rm -fv "${pkgdir}/usr/bin/$target"
|
||||
done
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
pkgname=less
|
||||
pkgver=661
|
||||
pkgdesc='A terminal based program for viewing text files'
|
||||
license=('GPL-3.0-or-later' 'BSD-2-Clause')
|
||||
homepage='https://www.greenwoodsoftware.com/less/'
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://www.greenwoodsoftware.com/${pkgname}/${sources[0]}")
|
||||
md5sums=("44f54b6313c5d71fa1ac224d8d84766a")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --sysconfdir=/etc
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm644 {,"$pkgdir"/usr/share/licenses/$pkgname/}LICENSE
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
pkgname=libcap
|
||||
pkgver=2.70
|
||||
pkgdesc="POSIX 1003.1e capabilities"
|
||||
homepage="https://sites.google.com/site/fullycapable/"
|
||||
license=('BSD-3-Clause OR GPL-2.0-only')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${sources[0]}")
|
||||
md5sums=("df0e20c6eeca849347b87d5d6a8870c0")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
sed -i '/install -m.*STA/d' libcap/Makefile
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make prefix=/usr lib=lib
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make prefix=/usr lib=lib DESTDIR="${pkgdir}" install
|
||||
install -vDm 644 License -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
pkgname="libelf"
|
||||
_pkgbase="elfutils"
|
||||
pkgver=0.191
|
||||
pkgdesc="Handle ELF object files and DWARF debugging information (lib)"
|
||||
license=("GPL-2.0-or-later OR LGPL-3.0-or-later")
|
||||
homepage="https://sourceware.org/elfutils/"
|
||||
sources=("${_pkgbase}-${pkgver}.tar.bz2")
|
||||
urls=("https://sourceware.org/ftp/${_pkgbase}/${pkgver}/${sources[0]}")
|
||||
md5sums="636547248fb3fae58ec48030298d3ef7"
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-debuginfod \
|
||||
--enable-libdebuginfod=dummy
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make -C ${pkgname} DESTDIR="${pkgdir}" install
|
||||
install -vm644 config/libelf.pc "${pkgdir}/usr/lib/pkgconfig"
|
||||
rm -v "${pkgdir}/usr/lib/libelf.a"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=libffi
|
||||
pkgver=3.4.6
|
||||
pkgdesc='Portable foreign function interface library'
|
||||
homepage='https://sourceware.org/libffi/'
|
||||
license=(MIT)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/libffi/libffi/releases/download/v${pkgver}/${sources[0]}")
|
||||
md5sums=("b9cac6c5997dca2b3787a59ede34e0eb")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--with-gcc-arch=native
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
pkgname=libtool
|
||||
pkgver=2.4.7
|
||||
pkgdesc='A generic library support script'
|
||||
homepage='https://www.gnu.org/software/libtool'
|
||||
license=('LGPL-2.0-or-later WITH Libtool-exception')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("2fc0b6ddcd66a89ed6e45db28fa44232")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib32"
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
leaf_record_message "Two of the tests are known to fail. See LFS handbook."
|
||||
make -k check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
rm -fv "${pkgdir}/usr/lib/libltdl.a"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=libxcrypt
|
||||
pkgver=4.4.36
|
||||
pkgdesc='Modern library for one-way hashing of passwords'
|
||||
homepage='https://github.com/besser82/libxcrypt/'
|
||||
license=('LGPL')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("${homepage}/releases/download/v${pkgver}/${sources[0]}")
|
||||
md5sums=("b84cd4104e08c975063ec6c4d0372446")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--enable-hashes=strong,glibc \
|
||||
--enable-obsolete-api=no \
|
||||
--disable-static \
|
||||
--disable-failure-tokens
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
pkgname=libxcrypt-compat
|
||||
_pkgbase=libxcrypt
|
||||
pkgver=4.4.36
|
||||
pkgdesc='Modern library for one-way hashing of passwords - legacy API functions'
|
||||
homepage='https://github.com/besser82/libxcrypt/'
|
||||
license=('LGPL')
|
||||
sources=("${_pkgbase}-${pkgver}.tar.xz")
|
||||
urls=("${homepage}/releases/download/v${pkgver}/${sources[0]}")
|
||||
md5sums=("b84cd4104e08c975063ec6c4d0372446")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--enable-hashes=strong,glibc \
|
||||
--enable-obsolete-api=glibc \
|
||||
--disable-static \
|
||||
--disable-failure-tokens
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
rm -rf "${pkgdir}"/usr/{include,lib/{lib*.so,pkgconfig},share}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
pkgname="lz4"
|
||||
pkgver="1.10.0"
|
||||
pkgdesc='Extremely fast compression algorithm'
|
||||
homepage="https://lz4.org/"
|
||||
license=('GPL-2.0-or-later')
|
||||
sources=("lz4-1.10.0.tar.gz")
|
||||
urls=("https://github.com/lz4/lz4/releases/download/v1.10.0/lz4-1.10.0.tar.gz")
|
||||
md5sums=("dead9f5f1966d9ae56e1e32761e4e675")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make BUILD_STATIC=no PREFIX=/usr
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make BUILD_STATIC=no PREFIX="${pkgdir}/usr" install
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=m4
|
||||
pkgver=1.4.19
|
||||
pkgdesc="The GNU macro processor"
|
||||
homepage="https://www.gnu.org/software/m4"
|
||||
license=('GPL3')
|
||||
sources=("$pkgname-$pkgver.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.xz")
|
||||
md5sums=("0d90823e1426f1da2fd872df0311298d")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make prefix="${pkgdir}"/usr install
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname="man-pages"
|
||||
pkgver="6.9.1"
|
||||
pkgdesc="Linux man pages"
|
||||
license=("GPL2")
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://www.kernel.org/pub/linux/docs/man-pages/man-pages-6.9.1.tar.xz")
|
||||
md5sums=("4d56775b6cce4edf1e496249e7c01c1a")
|
||||
|
||||
distdir=${DIST_DIR}/${pkgname}-${pkgver}
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_check(){
|
||||
return 0
|
||||
}
|
||||
|
||||
src_build() {
|
||||
cd "$srcdir"
|
||||
rm -v man3/crypt*
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make prefix=/usr DESTDIR="$pkgdir" install
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=mpc
|
||||
pkgver=1.3.1
|
||||
pkgdesc="Minimalist command line interface to MPD"
|
||||
homepage="https://www.musicpd.org/clients/mpc/"
|
||||
license=(GPL-2.0-or-later)
|
||||
sources=($pkgname-$pkgver.tar.gz)
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("5c9bc658c9fd0f940e8e3e0f09530c62")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/"${pkgname}-${pkgver}"
|
||||
make
|
||||
make html
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
make DESTDIR="$pkgdir" install-html
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
pkgname=mpfr
|
||||
_pkgver=4.2.1
|
||||
_patchver=0
|
||||
if (( _patchver == 0 )); then
|
||||
pkgver=$_pkgver
|
||||
else
|
||||
pkgver=$_pkgver.p$_patchver
|
||||
fi
|
||||
pkgdesc='Multiple-precision floating-point library'
|
||||
homepage='https://www.mpfr.org/'
|
||||
# NOTE: download potentially existing patches from upstream:
|
||||
# `curl patches.diff -o https://www.mpfr.org/mpfr-${_pkgver}/allpatches`
|
||||
sources=("${pkgname}-${_pkgver}.tar.xz")
|
||||
urls=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$_pkgver.tar.xz)
|
||||
md5sums=("523c50c6318dde6f9dc523bc0244690a")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--enable-thread-safe \
|
||||
--docdir=/usr/share/doc/mpfr-${_pkgver}
|
||||
make
|
||||
make html
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
make DESTDIR="$pkgdir" install-html
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
pkgname="ncurses"
|
||||
pkgver="6.5"
|
||||
pkgdesc='System V Release 4.0 curses emulation library'
|
||||
homepage="https://www.gnu.org/software/ncurses/"
|
||||
license=(MIT-open-group)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://invisible-mirror.net/archives/ncurses/${sources[0]}")
|
||||
md5sums=("ac2d2629296f04c8537ca706b6977687")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--with-shared \
|
||||
--without-debug \
|
||||
--without-normal \
|
||||
--with-cxx-shared \
|
||||
--enable-pc-files \
|
||||
--with-pkg-config-libdir=/usr/lib/pkgconfig
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -vDm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
sed -e 's/^#if.*XOPEN.*$/#if 1/' \
|
||||
-i "${pkgdir}/usr/include/curses.h"
|
||||
for lib in ncurses form panel menu ; do
|
||||
ln -sfv lib${lib}w.so "${pkgdir}/usr/lib/lib${lib}.so"
|
||||
ln -sfv ${lib}w.pc "${pkgdir}/usr/lib/pkgconfig/${lib}.pc"
|
||||
done
|
||||
ln -sfv libncursesw.so "${pkgdir}/usr/lib/libcurses.so"
|
||||
install -vd "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||
cp -v -R doc -T "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||
|
||||
# non-wide
|
||||
make distclean
|
||||
./configure --prefix=/usr \
|
||||
--with-shared \
|
||||
--without-normal \
|
||||
--without-debug \
|
||||
--without-cxx-binding \
|
||||
--with-abi-version=5
|
||||
make sources libs
|
||||
cp -av lib/lib*.so.5* "${pkgdir}/usr/lib"
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
pkgname=openssl
|
||||
pkgver=3.3.1
|
||||
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
|
||||
arch=('x86_64')
|
||||
homepage='https://www.openssl.org'
|
||||
license=('Apache-2.0')
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://www.openssl.org/source/${sources[0]}")
|
||||
md5sums=("8a4342b399c18f870ca6186299195984")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./config --prefix=/usr \
|
||||
--openssldir=/etc/ssl \
|
||||
--libdir=lib \
|
||||
shared \
|
||||
zlib-dynamic
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
leaf_record_message "30-test_afalg.t is known to fail if no \`CONFIG_CRYPTO_USER_API_SKCIPHER\`. See LFS handbook."
|
||||
HARNESS_JOBS=${PARALLEL_JOBS} make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
|
||||
make DESTDIR="${pkgdir}" MANSUFFIX=ssl install
|
||||
install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
pkgname=perl
|
||||
pkgver=5.40.0
|
||||
_basever="${pkgver%.*}"
|
||||
pkgdesc="A highly capable, feature-rich programming language"
|
||||
license=('GPL' 'PerlArtistic')
|
||||
homepage="https://www.perl.org"
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://www.cpan.org/src/5.0/${sources[0]}")
|
||||
md5sums=("cfe14ef0709b9687f9c514042e8e1e82")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
export BUILD_ZLIB=False
|
||||
export BUILD_BZIP2=0
|
||||
sh Configure -des \
|
||||
-D prefix=/usr \
|
||||
-D vendorprefix=/usr \
|
||||
-D privlib=/usr/lib/perl5/${_basever}/core_perl \
|
||||
-D archlib=/usr/lib/perl5/${_basever}/core_perl \
|
||||
-D sitelib=/usr/lib/perl5/${_basever}/site_perl \
|
||||
-D sitearch=/usr/lib/perl5/${_basever}/site_perl \
|
||||
-D vendorlib=/usr/lib/perl5/${_basever}/vendor_perl \
|
||||
-D vendorarch=/usr/lib/perl5/${_basever}/vendor_perl \
|
||||
-D man1dir=/usr/share/man/man1 \
|
||||
-D man3dir=/usr/share/man/man3 \
|
||||
-D pager="/usr/bin/less -isR" \
|
||||
-D useshrplib \
|
||||
-D usethreads
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
TEST_JOBS=$(nproc) make test_harness
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=perl-xml-parser
|
||||
pkgver=2.47
|
||||
pkgdesc="Expat-based XML parser module for perl"
|
||||
license=('GPL' 'PerlArtistic')
|
||||
homepage="https://github.com/chorny/XML-Parser"
|
||||
sources=("XML-Parser-${pkgver}.tar.gz")
|
||||
urls=("https://cpan.metacpan.org/authors/id/T/TO/TODDR/${sources[0]}")
|
||||
md5sums=("89a8e82cfd2ad948b349c0a69c494463")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
perl Makefile.PL
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=pkgconf
|
||||
pkgver=2.3.0
|
||||
pkgdesc="Package compiler and linker metadata toolkit"
|
||||
homepage="https://github.com/pkgconf/pkgconf"
|
||||
license=(ISC)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://distfiles.ariadne.space/pkgconf/${pkgname}-${pkgver}.tar.xz")
|
||||
md5sums=("833363e77b5bed0131c7bc4cc6f7747b")
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/pkgconf-${pkgver}
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
ln -sv pkgconf "${pkgdir}/usr/bin/pkg-config"
|
||||
ln -sv pkgconf.1 "${pkgdir}/usr/share/man/man1/pkg-config.1"
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
pkgname="psmisc"
|
||||
pkgver="23.7"
|
||||
pkgdesc='Miscellaneous procfs tools'
|
||||
homepage="https://gitlab.com/psmisc/psmisc"
|
||||
sources="${pkgname}-${pkgver}.tar.xz"
|
||||
urls="https://sourceforge.net/projects/psmisc/files/${pkgname}/${sources[0]}"
|
||||
md5sums="53eae841735189a896d614cba440eb10"
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
pkgname=python
|
||||
pkgver=3.12.5
|
||||
pkgdesc="The Python programming language"
|
||||
license=('PSF-2.0')
|
||||
homepage="https://www.python.org/"
|
||||
sources=("Python-${pkgver}.tar.xz"
|
||||
"${pkgname}-${pkgver}-docs-html.tar.bz2"
|
||||
)
|
||||
urls=("https://www.python.org/ftp/${pkgname}/${pkgver}/${sources[0]}"
|
||||
"https://www.python.org/ftp/${pkgname}/doc/${pkgver}/${sources[1]}"
|
||||
)
|
||||
md5sums=("02c7d269e077f4034963bba6befdc715"
|
||||
"52274d813236ca4a972fb6988480dc56"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
tar --no-same-owner -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[1]}
|
||||
}
|
||||
|
||||
src_build() {
|
||||
# PGO should be done with -O3
|
||||
CFLAGS="${CFLAGS/-O2/-O3}"
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--with-system-expat \
|
||||
--without-ensurepip \
|
||||
--enable-optimizations
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
LD_LIBRARY_PATH="${srcdir}":${LD_LIBRARY_PATH}\
|
||||
make test TESTOPTS="--timeout 120"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# PGO should be done with -O3
|
||||
CFLAGS="${CFLAGS/-O2/-O3} -ffat-lto-objects"
|
||||
|
||||
make DESTDIR="${pkgdir}" EXTRA_CFLAGS="$CFLAGS" install
|
||||
|
||||
ln -s python3 "${pkgdir}"/usr/bin/python
|
||||
ln -s python3-config "${pkgdir}"/usr/bin/python-config
|
||||
ln -s idle3 "${pkgdir}"/usr/bin/idle
|
||||
ln -s pydoc3 "${pkgdir}"/usr/bin/pydoc
|
||||
ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1
|
||||
|
||||
# doc
|
||||
install -v -dm755 "${pkgdir}/usr/share/doc/python-3.12.5/html"
|
||||
cp -R --no-preserve=mode python-${pkgver}-docs-html/* \
|
||||
"${pkgdir}/usr/share/doc/python-3.12.5/html"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
pkgname=python-flit-core
|
||||
_name=${pkgname#python-}
|
||||
pkgver=3.9.0
|
||||
pkgdesc="A PEP 517 build backend for packages using Flit"
|
||||
homepage="https://github.com/pypa/flit/tree/main/flit_core"
|
||||
license=(BSD-3-Clause)
|
||||
sources=("flit_core-${pkgver}.tar.gz")
|
||||
urls=("https://pypi.org/packages/source/f/${_name}/${sources[0]}")
|
||||
md5sums=("3bc52f1952b9a78361114147da63c35b")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
pkgname=python-setuptools
|
||||
_name=${pkgname#python-}
|
||||
pkgver=72.2.0
|
||||
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
|
||||
homepage="https://pypi.org/project/setuptools/"
|
||||
license=('MIT')
|
||||
sources=("${_name}-${pkgver}.tar.gz")
|
||||
urls=("https://pypi.org/packages/source/s/${_name}/${sources[0]}")
|
||||
md5sums=("2e0ffd0f6fc632a11442b79d9b1c68bd")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
|
||||
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=readline
|
||||
_basever=8.2
|
||||
_patchlevel=13
|
||||
pkgver=${_basever}.${_patchlevel}
|
||||
pkgdesc='GNU readline library'
|
||||
homepage='https://tiswww.case.edu/php/chet/readline/rltop.html'
|
||||
license=('GPL-3.0-only')
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://ftp.gnu.org/gnu/readline/readline-${pkgver}.tar.gz")
|
||||
md5sums=("05080bf3801e6874bb115cd6700b708f")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
sed -i '/MV.*old/d' Makefile.in
|
||||
sed -i '/{OLDSUFF}/c:' support/shlib-install
|
||||
sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--with-curses \
|
||||
--docdir=/usr/share/doc/readline-8.2.13
|
||||
make SHLIB_LIBS="-lncursesw"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make SHLIB_LIBS="-lncursesw" DESTDIR="$pkgdir" install
|
||||
install -v -m644 doc/*.{ps,pdf,html,dvi} ${pkgdir}/usr/share/doc/readline-8.2.13
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
pkgname="sed"
|
||||
pkgver="4.9"
|
||||
pkgdesc='GNU stream editor'
|
||||
homepage="https://www.gnu.org/software/sed/"
|
||||
license=('GPL3')
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
|
||||
md5sums=("6aac9b2dbafcd5b7a67a8a9bcb8036c3")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make html
|
||||
}
|
||||
|
||||
src_check() {
|
||||
chown -R leaf .
|
||||
su leaf -c "PATH=$PATH make check"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||
install -m644 doc/sed.html "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
pkgname=shadow
|
||||
pkgver=4.16.0
|
||||
pkgdesc="Password and account management tool suite with support for shadow files and PAM"
|
||||
homepage="https://github.com/shadow-maint/shadow"
|
||||
license=(BSD-3-Clause)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz"
|
||||
"useradd"
|
||||
)
|
||||
urls=("https://github.com/shadow-maint/shadow/releases/download/${pkgver}/${sources[0]}"
|
||||
"https://gitea.phywyj.dynv6.net/wyj/LFS-PKGBUILDs/raw/branch/main/lfs-12.2-systemd/shadow-4.16.0/useradd"
|
||||
)
|
||||
md5sums=("eb70bad3316d08f0d3bb3d4bbeccb3b4"
|
||||
"87ed6b2e7cdf479e05d4fe2510adb77f"
|
||||
)
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
|
||||
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
|
||||
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
|
||||
find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
|
||||
find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
|
||||
|
||||
sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD YESCRYPT:' \
|
||||
-e 's:/var/spool/mail:/var/mail:' \
|
||||
-e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \
|
||||
-i etc/login.defs
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--with-{b,yes}crypt \
|
||||
--without-libbsd \
|
||||
--with-group-name-max-length=32
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make exec_prefix=/usr DESTDIR="${pkgdir}" install
|
||||
make DESTDIR="${pkgdir}" -C man install-man
|
||||
install -vDm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
install -vDm 600 "${DIST_DIR}/${pkgname}-${pkgver}/useradd" -t "${pkgdir}/etc/default/"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
# useradd defaults file
|
||||
GROUP=999
|
||||
GROUPS=
|
||||
HOME=/home
|
||||
INACTIVE=-1
|
||||
EXPIRE=
|
||||
SHELL=/bin/bash
|
||||
SKEL=/etc/skel
|
||||
USRSKEL=/usr/etc/skel
|
||||
CREATE_MAIL_SPOOL=no
|
||||
LOG_INIT=yes
|
||||
@@ -0,0 +1,64 @@
|
||||
pkgname=tcl
|
||||
pkgver=8.6.14
|
||||
pkgdesc='Powerful, easy-to-learn dynamic programming language'
|
||||
homepage='http://tcl.sourceforge.net/'
|
||||
license=(TCL)
|
||||
_archive="$pkgname$pkgver"
|
||||
sources=("${_archive}-src.tar.gz"
|
||||
"${_archive}-html.tar.gz"
|
||||
)
|
||||
urls=("https://downloads.sourceforge.net/sourceforge/tcl/$_archive-src.tar.gz"
|
||||
"https://downloads.sourceforge.net/sourceforge/tcl/$_archive-html.tar.gz"
|
||||
)
|
||||
md5sums=("c30b57c6051be28fa928d09aca82841e"
|
||||
"5467198f8d57c54835bf80b98ffb0170"
|
||||
)
|
||||
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
SRCDIR=$(pwd)
|
||||
cd unix
|
||||
./configure --prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--disable-rpath
|
||||
make
|
||||
|
||||
sed -e "s|$SRCDIR/unix|/usr/lib|" \
|
||||
-e "s|$SRCDIR|/usr/include|" \
|
||||
-i tclConfig.sh
|
||||
|
||||
sed -e "s|$SRCDIR/unix/pkgs/tdbc1.1.7|/usr/lib/tdbc1.1.7|" \
|
||||
-e "s|$SRCDIR/pkgs/tdbc1.1.7/generic|/usr/include|" \
|
||||
-e "s|$SRCDIR/pkgs/tdbc1.1.7/library|/usr/lib/tcl8.6|" \
|
||||
-e "s|$SRCDIR/pkgs/tdbc1.1.7|/usr/include|" \
|
||||
-i pkgs/tdbc1.1.7/tdbcConfig.sh
|
||||
|
||||
sed -e "s|$SRCDIR/unix/pkgs/itcl4.2.4|/usr/lib/itcl4.2.4|" \
|
||||
-e "s|$SRCDIR/pkgs/itcl4.2.4/generic|/usr/include|" \
|
||||
-e "s|$SRCDIR/pkgs/itcl4.2.4|/usr/include|" \
|
||||
-i pkgs/itcl4.2.4/itclConfig.sh
|
||||
|
||||
unset SRCDIR
|
||||
}
|
||||
|
||||
src_check() {
|
||||
cd "${srcdir}/unix"
|
||||
make test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${srcdir}/unix"
|
||||
make INSTALL_ROOT="${pkgdir}" install install-private-headers
|
||||
chmod -v u+w "${pkgdir}/usr/lib/libtcl8.6.so"
|
||||
ln -sfv tclsh8.6 "${pkgdir}/usr/bin/tclsh"
|
||||
mv "${pkgdir}"/usr/share/man/man3/{Thread,Tcl_Thread}.3
|
||||
|
||||
cd ..
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[1]} --strip-components=1
|
||||
mkdir -v -p "${pkgdir}/usr/share/doc/tcl-8.6.14"
|
||||
cp -v -r ./html/* "${pkgdir}/usr/share/doc/tcl-8.6.14"
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
pkgname="xz"
|
||||
pkgver="5.6.2"
|
||||
pkgdesc='Library and command line tools for XZ and LZMA compressed files'
|
||||
homepage="https://tukaani.org/xz"
|
||||
license=('GPL' 'LGPL' 'custom')
|
||||
sources=("xz-5.6.2.tar.xz")
|
||||
urls=("https://github.com//tukaani-project/xz/releases/download/v5.6.2/xz-5.6.2.tar.xz")
|
||||
md5sums=("bbf73fb28425cebb854328599f85c4cf")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/xz-5.6.2 &&
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -d -m0755 "${pkgdir}/usr/share/licenses/xz/"
|
||||
ln -sf ../../doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname="zlib"
|
||||
pkgver="1.3.1"
|
||||
pkgdesc='Compression library implementing the deflate compression method found in gzip and PKZIP'
|
||||
homepage="https://www.zlib.net/"
|
||||
license=("Zlib")
|
||||
sources=("zlib-1.3.1.tar.gz")
|
||||
urls=("https://zlib.net/fossils/zlib-1.3.1.tar.gz")
|
||||
md5sums=("9855b6d802d7fe5b7bd5b196a2271655")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}/" install &&
|
||||
rm -fv "${pkgdir}/usr/lib/libz.a"
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
pkgname=zstd
|
||||
pkgver=1.5.6
|
||||
pkgdesc='Zstandard - Fast real-time compression algorithm'
|
||||
url='https://facebook.github.io/zstd/'
|
||||
license=(
|
||||
BSD-3-Clause
|
||||
GPL-2.0-only
|
||||
)
|
||||
sources=("zstd-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.gz")
|
||||
md5sums=("5a473726b3445d0e5d6296afd1ab6854")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make prefix=/usr
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make prefix="${pkgdir}/usr" install
|
||||
rm -v "${pkgdir}/usr/lib/libzstd.a"
|
||||
}
|
||||
Reference in New Issue
Block a user