new: migrate more packages

This commit is contained in:
ngn 2024-07-24 22:09:01 +03:00
parent 07d499fef5
commit a7dfd49ab5
36 changed files with 380 additions and 0 deletions

3
src/less/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/less/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 661
First version

23
src/less/pkg.sh Normal file
View File

@ -0,0 +1,23 @@
# general info
NAME="less"
DESC="Free, open-source file pager"
VERSION="661"
# required files
FILES=("https://www.greenwoodsoftware.com/less/less-${VERSION}.tar.gz")
HASHES=("2b5f0167216e3ef0ffcb0c31c374e287eb035e4e223d5dae315c2783b6e738ed")
# install and build depends
DEPENDS=("glibc" "pcre2" "ncurses")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr --sysconfdir=/etc
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libarchive/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

View File

@ -0,0 +1,2 @@
# 3.7.4
First version

29
src/libarchive/pkg.sh Normal file
View File

@ -0,0 +1,29 @@
# general info
NAME="libarchive"
DESC="Multi-format archive and compression library"
VERSION="3.7.4"
# required files
FILES=("https://github.com/libarchive/libarchive/releases/download/v${VERSION}/libarchive-${VERSION}.tar.xz")
HASHES=("f887755c434a736a609cbd28d87ddbfbe9d6a3bb5b703c22c02f6af80a802735")
# install and build depends
DEPENDS=(
"acl" "bzip2" "zstd"
"libxml2" "gzip" "zlib"
"xz" "openssl"
)
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.xz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr \
--without-nettle \
--disable-static
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libassuan/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libassuan/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 3.0.1
First version

23
src/libassuan/pkg.sh Normal file
View File

@ -0,0 +1,23 @@
# general info
NAME="libassuan"
DESC="Small library implementing the Assuan protocol"
VERSION="3.0.1"
# required files
FILES=("https://gnupg.org/ftp/gcrypt/libassuan/libassuan-${VERSION}.tar.bz2")
HASHES=("6914a02c20053bae0fc4c29c5c40655f1cec711983d57fa85e46df34e90b10e33d31256dd50ae7c7faa8d8d750a529bf9072da0cda3bdd77ebfedbc0e26e5e16")
# install and build depends
DEPENDS=("glibc" "libgpg-error" "bash")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.bz2"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libcap/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libcap/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 2.70
First version

23
src/libcap/pkg.sh Normal file
View File

@ -0,0 +1,23 @@
# general info
NAME="libcap"
DESC="Userspace interface to the POSIX 1003.1e capabilities available in Linux kernels"
VERSION="2.70"
# required files
FILES=("https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${VERSION}.tar.xz")
HASHES=("4e0bf0efeccb654c409afe9727b2b53c1d4da8190d7a0a9848fc52550ff3e13502add3eacde04a68a5b7bec09e91df487f64c5746ba987f873236a9e53b3d4e8")
# install and build depends
DEPENDS=("gcc-libs" "glibc" "linux-pam")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.xz"
cd "${NAME}-${VERSION}"
sed -i '/install -m.*STA/d' libcap/Makefile
make prefix=/usr lib=lib
make DESTDIR="${ROOTDIR}" prefix=/usr lib=lib install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libelf/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libelf/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 0.191
First version

32
src/libelf/pkg.sh Normal file
View File

@ -0,0 +1,32 @@
# general info
NAME="libelf"
DESC="Library for handling ELF (Executable and Linkable Format) files"
VERSION="0.191"
# required files
FILES=("https://sourceware.org/ftp/elfutils/${VERSION}/elfutils-${VERSION}.tar.bz2")
HASHES=("e22d85f25317a79b36d370347e50284c9120c86f9830f08791b7b6a7b4ad89b9bf4c7c71129133b8d193a0edffb2a2c17987b7e48428b9670aff5ce918777e04")
# install and build depends
DEPENDS=(
"gcc-libs" "glibc" "bzip2"
"xz" "zlib" "zstd"
)
BUILD=()
build(){
tar xf "elfutils-${VERSION}.tar.bz2"
cd "elfutils-${VERSION}"
./configure --prefix=/usr \
--disable-debuginfod \
--enable-libdebuginfod=dummy
make
make DESTDIR="${ROOTDIR}" -C libelf install
install -dm755 "${ROOTDIR}/usr/lib/pkgconfig"
install -vm644 config/libelf.pc "${ROOTDIR}/usr/lib/pkgconfig"
rm "${ROOTDIR}/usr/lib/libelf.a"
cd .. && rm -r "elfutils-${VERSION}"
}

3
src/libffi/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libffi/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 3.4.6
First version

25
src/libffi/pkg.sh Normal file
View File

@ -0,0 +1,25 @@
# general info
NAME="libffi"
DESC="Portable foreign function interface library"
VERSION="3.4.6"
# required files
FILES=("https://github.com/libffi/libffi/releases/download/v${VERSION}/libffi-${VERSION}.tar.gz")
HASHES=("b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e")
# install and build depends
DEPENDS=("glibc")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr \
--disable-static \
--with-gcc-arch=native
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libgcrypt/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libgcrypt/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 1.11.0
First version

38
src/libgcrypt/pkg.sh Normal file
View File

@ -0,0 +1,38 @@
# general info
NAME="libgcrypt"
DESC="General purpose crypto library based on the code used in GnuPG"
VERSION="1.11.0"
# required files
FILES=("https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${VERSION}.tar.bz2")
HASHES=("09120c9867ce7f2081d6aaa1775386b98c2f2f246135761aae47d81f58685b9c")
# install and build depends
DEPENDS=("glibc" "libgpg-error")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.bz2"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr
make
make -C doc html
makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi
makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi
make DESTDIR="${ROOTDIR}" install
install -v -dm755 "${ROOTDIR}/usr/share/doc/libgcrypt-${VERSION}"
install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
"${ROOTDIR}/usr/share/doc/libgcrypt-${VERSION}"
install -v -dm755 "${ROOTDIR}/usr/share/doc/libgcrypt-${VERSION}/html"
install -v -m644 doc/gcrypt.html/* \
"${ROOTDIR}/usr/share/doc/libgcrypt-${VERSION}/html"
install -v -m644 doc/gcrypt_nochunks.html \
"${ROOTDIR}/usr/share/doc/libgcrypt-${VERSION}"
install -v -m644 doc/gcrypt.{txt,texi} \
"${ROOTDIR}/usr/share/doc/libgcrypt-${VERSION}"
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libgpg-error/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

View File

@ -0,0 +1,2 @@
# 1.50
First version

24
src/libgpg-error/pkg.sh Normal file
View File

@ -0,0 +1,24 @@
# general info
NAME="libgpg-error"
DESC="Common error values for all GnuPG components"
VERSION="1.50"
# required files
FILES=("https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-${VERSION}.tar.bz2")
HASHES=("69405349e0a633e444a28c5b35ce8f14484684518a508dc48a089992fe93e20a")
# install and build depends
DEPENDS=("glibc" "bash")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.bz2"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr
make
make DESTDIR="${ROOTDIR}" install
install -v -m644 -D README "${ROOTDIR}/usr/share/doc/libgpg-error-${VERSION}/README"
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libidn2/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libidn2/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 2.3.7
First version

23
src/libidn2/pkg.sh Normal file
View File

@ -0,0 +1,23 @@
# general info
NAME="libidn2"
DESC="Implementation of the IDNA2008 + TR46 specifications"
VERSION="2.3.7"
# required files
FILES=("https://ftp.gnu.org/gnu/libidn/libidn2-${VERSION}.tar.gz")
HASHES=("de2818c7dea718a4f264f463f595596b")
# install and build depends
DEPENDS=("libunistring")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr --disable-static
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libinih/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libinih/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 58
First version

30
src/libinih/pkg.sh Normal file
View File

@ -0,0 +1,30 @@
# general info
NAME="libinih"
DESC="Simple .INI file parser in C"
VERSION="58"
# required files
FILES=("https://github.com/benhoyt/inih/archive/refs/tags/r${VERSION}.tar.gz")
HASHES=("e79216260d5dffe809bda840be48ab0eec7737b2bb9f02d2275c1b46344ea7b7")
# install and build depends
DEPENDS=("gcc-libs" "glibc")
BUILD=("meson" "ninja")
build(){
tar xf "r${VERSION}.tar.gz"
cd "inih-r${VERSION}"
mkdir build
cd build
meson setup -Ddefault_library=shared \
-Dmax_line_length=1000 \
-Ddistro_install=true \
-Dwith_INIReader=true \
--prefix=/usr --buildtype=release ..
ninja
DESTDIR="${ROOTDIR}" ninja install
cd ../.. && rm -r "inih-r${VERSION}"
}

3
src/libksba/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libksba/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 1.6.7
First version

23
src/libksba/pkg.sh Normal file
View File

@ -0,0 +1,23 @@
# general info
NAME="libksba"
DESC="Library to make the tasks of working with X.509 certificates"
VERSION="1.6.7"
# required files
FILES=("https://www.gnupg.org/ftp/gcrypt/libksba/libksba-${VERSION}.tar.bz2")
HASHES=("cf72510b8ebb4eb6693eef765749d83677a03c79291a311040a5bfd79baab763")
# install and build depends
DEPENDS=("bash" "glibc" "libgpg-error")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.bz2"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}

3
src/libndp/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libndp/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 1.8
First version

27
src/libndp/pkg.sh Normal file
View File

@ -0,0 +1,27 @@
# general info
NAME="libndp"
DESC="Library for Neighbor Discovery Protocol"
VERSION="1.9"
# required files
FILES=("https://github.com/jpirko/libndp/archive/refs/tags/v${VERSION}.tar.gz")
HASHES=("e564f5914a6b1b799c3afa64c258824a801c1b79a29e2fe6525b682249c65261")
# install and build depends
DEPENDS=("glibc")
BUILD=()
build(){
tar xf "v${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./autogen.sh
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r "${NAME}-${VERSION}"
}