new: migrated more packages

This commit is contained in:
ngn
2024-07-27 00:56:23 +03:00
parent 2b4d7c7d6e
commit 4b1ee5d9b2
36 changed files with 328 additions and 4 deletions

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

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

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

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

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

@ -0,0 +1,27 @@
# general info
NAME="nettle"
DESC="A low-level cryptographic library"
VERSION="3.10"
# required files
FILES=("https://ftp.gnu.org/gnu/nettle/nettle-${VERSION}.tar.gz")
HASHES=("b4c518adb174e484cb4acea54118f02380c7133771e7e9beb98a0787194ee47c")
# install and build depends
DEPENDS=("glibc" "gmp")
BUILD=()
build(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr --disable-static
make
make DESTDIR="${ROOTDIR}" install
chmod -v 755 "${ROOTDIR}/usr/lib/lib"{hogweed,nettle}.so
install -v -m755 -d "${ROOTDIR}/usr/share/doc/nettle-${VERSION}"
install -v -m644 nettle.{html,pdf} "${ROOTDIR}/usr/share/doc/nettle-${VERSION}"
cd .. && rm -r "${NAME}-${VERSION}"
}