aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuss Webber <russ@rw.id.au>2019-06-03 17:50:50 +1000
committerLeo <thinkabit.ukim@gmail.com>2019-06-15 08:47:06 -0300
commit9b17d6075e21804eea4a3f2080fa392db7f0927e (patch)
tree7724549efd6cc78d722c2162025f0c46e20e3123
parent80672302541bd5ce66cd99a34274aa13fef387ee (diff)
downloadaports-9b17d6075e21804eea4a3f2080fa392db7f0927e.tar.gz
aports-9b17d6075e21804eea4a3f2080fa392db7f0927e.tar.bz2
aports-9b17d6075e21804eea4a3f2080fa392db7f0927e.tar.xz
testing/crypto++: upgrade to 8.2.0
-rw-r--r--testing/crypto++/APKBUILD27
1 files changed, 10 insertions, 17 deletions
diff --git a/testing/crypto++/APKBUILD b/testing/crypto++/APKBUILD
index c53f30e6b2..59c69ef9cc 100644
--- a/testing/crypto++/APKBUILD
+++ b/testing/crypto++/APKBUILD
@@ -2,35 +2,28 @@
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=crypto++
_pkgname=cryptopp
-pkgver=5.6.5
+pkgver=8.2.0
_pkgver=${pkgver//./}
-pkgrel=1
+pkgrel=0
pkgdesc="A free C++ class library of cryptographic schemes"
url="https://www.cryptopp.com/"
arch="all"
license="BSL-1.0"
-depends=""
depends_dev="$pkgname"
-makedepends=""
-subpackages="$pkgname-dev"
+subpackages="$pkgname-static $pkgname-dev"
source="https://www.cryptopp.com/${_pkgname}${_pkgver}.zip"
-
builddir="$srcdir"
build() {
- cd "$builddir"
- sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile || return 1
- export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
- make -f GNUmakefile || return 1
- make libcryptopp.so || return 1
+ make CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" -f GNUmakefile dynamic libcryptopp.pc
+}
+
+check() {
+ make -f GNUmakefile check
}
package() {
- cd "$builddir"
- install -Dm644 libcryptopp.so "$pkgdir"/usr/lib/libcryptopp.so || return 1
- install -Dm644 License.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
- mkdir -p "$pkgdir"/usr/include/cryptopp/ || return 1
- install -m644 *.h "$pkgdir"/usr/include/cryptopp/ || return 1
+ make DESTDIR="$pkgdir" PREFIX="/usr" install-lib
}
-sha512sums="f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7 cryptopp565.zip"
+sha512sums="753513a4ec8dd0fff2f551853ce6bd265d82219c28b033565b565b5e567fbee17adb419f4cde58a97e62b7d6533f4099aa4996cd0ba4775c6a2e7ae63a879da5 cryptopp820.zip"