desktop/crypto++/PKGBUILD

36 lines
1.1 KiB
Bash
Raw Normal View History

2014-12-20 14:20:30 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=crypto++
_pkgname=cryptopp
2016-09-17 18:28:17 +08:00
pkgver=5.6.4
2014-12-20 14:20:30 +08:00
_pkgver=${pkgver//./}
2016-05-17 02:41:24 +08:00
pkgrel=1
2014-12-20 14:20:30 +08:00
pkgdesc="C++ class library of cryptographic schemes."
arch=('i686' 'x86_64')
url="http://www.cryptopp.com"
license=('custom')
makedepends=('unzip')
2014-12-20 14:42:49 +08:00
source=($url/$_pkgname$_pkgver.zip
libcrypto++.pc)
2016-09-17 18:28:17 +08:00
md5sums=('4ee7e5cdd4a45a14756c169eaf2a77fc'
2014-12-20 14:42:49 +08:00
'46de3847c59ad16456fa863eb33e73b2')
2014-12-20 14:20:30 +08:00
2014-12-20 14:42:49 +08:00
# The code below has been copied from the Arch Linux PKGBUILD.
2014-12-20 14:20:30 +08:00
build() {
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
2014-12-20 14:42:49 +08:00
export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
make -f GNUmakefile
make libcryptopp.so
2014-12-20 14:20:30 +08:00
}
package() {
2014-12-20 14:42:49 +08:00
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"
2014-12-20 14:20:30 +08:00
}