desktop/crypto++/PKGBUILD
2016-09-20 13:11:22 +01:00

29 lines
873 B
Bash

pkgname=crypto++
_pkgname=cryptopp
pkgver=5.6.4
_pkgver=${pkgver//./}
pkgrel=2
pkgdesc="C++ class library of cryptographic schemes."
arch=('x86_64')
url="http://www.cryptopp.com"
license=('custom')
makedepends=('unzip')
source=($url/$_pkgname$_pkgver.zip
libcrypto++.pc)
md5sums=('4ee7e5cdd4a45a14756c169eaf2a77fc'
'46de3847c59ad16456fa863eb33e73b2')
# The code below has been copied from the Arch Linux PKGBUILD.
build() {
CXXFLAGS+=" -fPIC" make -f GNUmakefile-cross
make libcryptopp.so
}
package() {
install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp}
install -m644 *.h ${pkgdir}/usr/include/cryptopp/
install -m644 libcryptopp.so "${pkgdir}/usr/lib/libcryptopp.so"
install -m644 ${srcdir}/libcrypto++.pc "${pkgdir}/usr/lib/pkgconfig/libcrypto++.pc"
install -D -m644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}