new: migrated more packages
This commit is contained in:
3
src/nettle/.gitignore
vendored
Normal file
3
src/nettle/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.cache/
|
||||
dist/
|
||||
root/
|
2
src/nettle/changes.md
Normal file
2
src/nettle/changes.md
Normal file
@ -0,0 +1,2 @@
|
||||
# 3.10
|
||||
First version
|
27
src/nettle/pkg.sh
Normal file
27
src/nettle/pkg.sh
Normal 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}"
|
||||
}
|
Reference in New Issue
Block a user