aboutsummaryrefslogtreecommitdiffstats
path: root/testing/crypto++/APKBUILD
blob: 14969a774d58d4698068a87918ef63564a073df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=crypto++
_pkgname=cryptopp
pkgver=5.6.3
_pkgver=${pkgver//./}
pkgrel=0
pkgdesc="A free C++ class library of cryptographic schemes"
url="http://www.cryptopp.com"
arch="all"
license="Boost"
depends=""
depends_dev="$pkgname"
makedepends=""
subpackages="$pkgname-dev"
source="http://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
}

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
}

md5sums="3c5b70e2ec98b7a24988734446242d07  cryptopp563.zip"
sha256sums="9390670a14170dd0f48a6b6b06f74269ef4b056d4718a1a329f6f6069dc957c9  cryptopp563.zip"
sha512sums="b3b963e87d937aeae03aa41849c23bb03fc0a8e627afddb8aa74bc07edf51949888aaa25cb4888053455524e7c5dd8de1f11e227acfab3a3ea344285b6408ce0  cryptopp563.zip"