PKGBUILDs/extra/crypto++/PKGBUILD

39 lines
1.2 KiB
Bash
Raw Normal View History

2016-02-17 19:34:28 +00:00
# $Id$
2012-03-23 23:28:12 +00:00
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Kritoke <kritoke@gamebox.net>
# Contributor: jlvsimoes <jlvsimoes@oninet.pt>
2016-02-17 19:34:28 +00:00
# remove when bumped upstream
2012-03-23 23:28:12 +00:00
pkgname=crypto++
pkgver=5.6.3
_srcver=${pkgver//./}
pkgrel=1
2012-03-23 23:28:12 +00:00
pkgdesc="A free C++ class library of cryptographic schemes"
arch=('i686' 'x86_64')
url="http://www.cryptopp.com/"
license=('custom')
depends=('gcc-libs')
makedepends=('unzip')
source=("http://www.cryptopp.com/cryptopp${_srcver}.zip"
2016-02-17 19:34:28 +00:00
'libcrypto++.pc')
md5sums=('3c5b70e2ec98b7a24988734446242d07'
2016-02-17 19:34:28 +00:00
'46de3847c59ad16456fa863eb33e73b2')
2012-03-23 23:28:12 +00:00
2015-07-24 12:36:24 +00:00
build() {
2012-03-23 23:28:12 +00:00
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
make -f GNUmakefile
2016-02-17 19:34:28 +00:00
make libcryptopp.so
2012-03-23 23:28:12 +00:00
}
package() {
install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp}
install -m644 *.h ${pkgdir}/usr/include/cryptopp/
2016-02-17 19:34:28 +00:00
install -m644 libcryptopp.so "${pkgdir}/usr/lib/libcryptopp.so"
2012-03-23 23:28:12 +00:00
install -m644 ${srcdir}/libcrypto++.pc "${pkgdir}/usr/lib/pkgconfig/libcrypto++.pc"
install -D -m644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}