[arch-commits] Commit in crypto++/trunk (PKGBUILD libcrypto++.pc)
Giovanni Scafora
giovanni at archlinux.org
Sun Mar 6 14:15:54 UTC 2011
Date: Sunday, March 6, 2011 @ 09:15:54
Author: giovanni
Revision: 112753
upgpkg: crypto++ 5.6.1-2
Fixed FS23005 and FS23008
Added:
crypto++/trunk/libcrypto++.pc
Modified:
crypto++/trunk/PKGBUILD
----------------+
PKGBUILD | 22 +++++++++++++++-------
libcrypto++.pc | 11 +++++++++++
2 files changed, 26 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-03-06 13:10:51 UTC (rev 112752)
+++ PKGBUILD 2011-03-06 14:15:54 UTC (rev 112753)
@@ -1,5 +1,6 @@
# $Id$
# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
# Contributor: Andrea Scarpino <andrea at archlinux.org>
# Contributor: Kritoke <kritoke at gamebox.net>
# Contributor: jlvsimoes <jlvsimoes at oninet.pt>
@@ -7,21 +8,28 @@
pkgname=crypto++
pkgver=5.6.1
_srcver=561
-pkgrel=1
+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')
-url="http://www.cryptopp.com/"
-source=(http://www.cryptopp.com/cryptopp${_srcver}.zip)
-md5sums=('96cbeba0907562b077e26bcffb483828')
+source=(http://www.cryptopp.com/cryptopp${_srcver}.zip
+ libcrypto++.pc)
+md5sums=('96cbeba0907562b077e26bcffb483828'
+ '2337c6edbc552d9142cae8e0854715e7')
build() {
cd ${srcdir}
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
- make -f GNUmakefile || return 1
- install -d ${pkgdir}/usr/{lib,include/cryptopp}
+ 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/
+ 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
}
Added: libcrypto++.pc
===================================================================
--- libcrypto++.pc (rev 0)
+++ libcrypto++.pc 2011-03-06 14:15:54 UTC (rev 112753)
@@ -0,0 +1,11 @@
+# Written by Alexander Rødseth <rodseth at 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}
More information about the arch-commits
mailing list