PKGBUILDs/extra/crypto++/PKGBUILD

52 lines
1.6 KiB
Bash
Raw Normal View History

2012-03-23 23:28:12 +00:00
# $Id: PKGBUILD 143721 2011-11-28 17:06:53Z 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>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - fix_build_system.patch to use libtool for compilation
# - removed making libcryptopp.so, adjusted packaging for .libs
plugrel=1
pkgname=crypto++
2013-03-05 20:42:22 +00:00
pkgver=5.6.2
_srcver=562
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"
'libcrypto++.pc'
2013-03-05 20:42:22 +00:00
'fix_build_system.patch')
2012-03-23 23:28:12 +00:00
md5sums=('96cbeba0907562b077e26bcffb483828'
2013-03-05 20:42:22 +00:00
'46de3847c59ad16456fa863eb33e73b2'
2012-05-15 00:27:18 +00:00
'8d454c524bafc05aa842ddfc63d8431d')
2012-03-23 23:28:12 +00:00
build() {
cd ${srcdir}
2012-05-14 23:39:52 +00:00
# ALARM
2012-03-23 23:28:12 +00:00
patch -p0 -i fix_build_system.patch
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
make -f GNUmakefile
}
package() {
cd ${srcdir}
install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp}
install -m644 *.h ${pkgdir}/usr/include/cryptopp/
install -m644 .libs/libcryptopp.a "${pkgdir}/usr/lib/libcryptopp.a"
install -m644 .libs/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"
}