aboutsummaryrefslogtreecommitdiffstats
path: root/testing/crypto++/APKBUILD
blob: 6c2d22b9c2bf0da75a9dc4261aaa1b059021854f (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=crypto++
_pkgname=cryptopp
pkgver=5.6.5
_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
}

sha512sums="f13718d02ca69b0129aaf9e767c9d2e0333aa7538355f9c63d9eaf1ff369062084a18dc01489439ebf37797b3ea81b01beb072057d47ec962bfb824ddc72abc7  cryptopp565.zip"