From 38ca9a607e5957cc0e62d69885e17eaab734ef47 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 12 Mar 2019 14:08:36 +0000 Subject: user/nacl: new package (tentative) --- user/nacl/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/nacl/APKBUILD (limited to 'user') diff --git a/user/nacl/APKBUILD b/user/nacl/APKBUILD new file mode 100644 index 000000000..63abcb0a2 --- /dev/null +++ b/user/nacl/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Laurent Bercot +# Maintainer: Laurent Bercot +pkgname=nacl +pkgver=20110221 +pkgrel=0 +pkgdesc="Networking and Cryptography library" +url="https://nacl.cr.yp.to/" +arch="all" +options="!check" # No test suite. +license="Public-Domain" +subpackages="$pkgname-dev" +source="https://hyperelliptic.org/$pkgname/$pkgname-$pkgver.tar.bz2" +_bins="curvecpclient curvecpmakekey curvecpmessage curvecpprintkey curvecpserver nacl-sha256 nacl-sha512" + +build() { + cd "$builddir" + echo "$CC $CFLAGS" > okcompilers/c + echo "g++ $CXXFLAGS" > okcompilers/cpp + ./do done # 'done' is only there to work around buggy syntax highlighting >.> +} + +package() { + mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/include/$pkgname" "$pkgdir/usr/lib/$pkgname" + _shorthostname=`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'` + cd "$builddir/build/$_shorthostname" + _okabi=`bin/okabi | head -n 1` + for i in $_bins ; do cp "bin/$i" "$pkgdir/usr/bin/" ; done + cp include/cpuid.h include/"$_okabi"/*.h "$pkgdir/usr/include/$pkgname/" + ln -s . "$pkgdir/usr/include/$pkgname/$_okabi" + cp lib/"$_okabi"/*.o lib/"$_okabi"/*.a "$pkgdir/usr/lib/$pkgname" +} + +sha512sums="4c031ceffe6a28dc74b46ac003d485531f78de467c802df73c8b22ca53644dabb7d2e3080b7bdd6583f0d07ad76b6d95bc0ffdce319ca2f80ee041e6fe618656 nacl-20110221.tar.bz2" -- cgit v1.2.3-70-g09d2