move: sys/ -> lfs-12.2-systemd/
This commit is contained in:
44
lfs-12.2-systemd/bzip2-1.0.8.PKGBUILD
Normal file
44
lfs-12.2-systemd/bzip2-1.0.8.PKGBUILD
Normal file
@@ -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"
|
||||
}
|
||||
23
lfs-12.2-systemd/iana-etc-20240806.PKGBUILD
Normal file
23
lfs-12.2-systemd/iana-etc-20240806.PKGBUILD
Normal file
@@ -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"
|
||||
}
|
||||
26
lfs-12.2-systemd/man-pages-6.9.1.PKGBUILD
Normal file
26
lfs-12.2-systemd/man-pages-6.9.1.PKGBUILD
Normal file
@@ -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
|
||||
}
|
||||
29
lfs-12.2-systemd/xz-5.6.2.PKGBUILD
Normal file
29
lfs-12.2-systemd/xz-5.6.2.PKGBUILD
Normal file
@@ -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/"
|
||||
}
|
||||
26
lfs-12.2-systemd/zlib-1.3.1.PKGBUILD
Normal file
26
lfs-12.2-systemd/zlib-1.3.1.PKGBUILD
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user