Trying to fix crypto++ (broke some CCR packages, like amule-adnza).

This commit is contained in:
Daniele 2011-12-24 23:33:29 +00:00
parent 3fd27a79cc
commit abaa132f71
2 changed files with 28 additions and 9 deletions

View File

@ -10,27 +10,35 @@ pkgname=crypto++
_pkgname=cryptopp
pkgver=5.6.1
_pkgver=561
pkgrel=1
pkgrel=2
pkgdesc="C++ class library of cryptographic schemes."
arch=('i686' 'x86_64')
url="http://www.cryptopp.com"
license=('custom')
makedepends=('unzip')
source=($url/$_pkgname$_pkgver.zip)
md5sums=('96cbeba0907562b077e26bcffb483828')
source=("${url}/${_pkgname}${_pkgver}.zip"
'libcrypto++.pc')
md5sums=('96cbeba0907562b077e26bcffb483828'
'2337c6edbc552d9142cae8e0854715e7')
build() {
cd $srcdir
cd "${srcdir}"
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
make -f GNUmakefile || return 1
export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
make -f GNUmakefile
make libcryptopp.so
}
package() {
install -d $pkgdir/usr/{lib,include/cryptopp}
install -m644 *.h $pkgdir/usr/include/$_pkgname/
install -m644 libcryptopp.a $pkgdir/usr/lib/
install -d "${pkgdir}/usr"/{lib/pkgconfig,include/cryptopp}
install -m644 *.h "${pkgdir}/usr/include/${_pkgname}"
install -m644 libcryptopp.a "${pkgdir}/usr/lib"
install -m644 libcryptopp.so "${pkgdir}/usr/lib"
install -m644 "${srcdir}/libcrypto++.pc" "${pkgdir}/usr/lib/pkgconfig/libcrypto++.pc"
# License:
install -D -m644 License.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -D -m644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:

11
crypto++/libcrypto++.pc Normal file
View File

@ -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}