diff options
Diffstat (limited to 'extra/crypto++')
-rw-r--r-- | extra/crypto++/PKGBUILD | 35 | ||||
-rw-r--r-- | extra/crypto++/libcrypto++.pc | 11 |
2 files changed, 46 insertions, 0 deletions
diff --git a/extra/crypto++/PKGBUILD b/extra/crypto++/PKGBUILD new file mode 100644 index 000000000..855573288 --- /dev/null +++ b/extra/crypto++/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 112753 2011-03-06 14:15:54Z giovanni $ +# 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> + +pkgname=crypto++ +pkgver=5.6.1 +_srcver=561 +pkgrel=2 +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 + libcrypto++.pc) +md5sums=('96cbeba0907562b077e26bcffb483828' + '2337c6edbc552d9142cae8e0854715e7') + +build() { + cd ${srcdir} + sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile + export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" + make -f GNUmakefile + make libcryptopp.so + install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp} + install -m644 *.h ${pkgdir}/usr/include/cryptopp/ + install -m644 libcryptopp.a ${pkgdir}/usr/lib/libcryptopp.a + 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 +} diff --git a/extra/crypto++/libcrypto++.pc b/extra/crypto++/libcrypto++.pc new file mode 100644 index 000000000..698d761a7 --- /dev/null +++ b/extra/crypto++/libcrypto++.pc @@ -0,0 +1,11 @@ +# Written by Alexander Rødseth <rodseth@gmail.com> + +prefix=/usr +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: libcrypto++-5.6.1 +Description: Class library of cryptographic schemes +Version: 5.6.1 +Libs: -L${libdir} -lcryptopp +Cflags: -I${includedir} |