[arch-commits] CVS update of extra/lib/crypto++ (PKGBUILD)

Jan de Groot jgc at archlinux.org
Sun Jun 17 16:18:59 UTC 2007


    Date: Sunday, June 17, 2007 @ 12:18:59
  Author: jgc
    Path: /home/cvs-extra/extra/lib/crypto++

Modified: PKGBUILD (1.2 -> 1.3)

upgpkg: crypto++ 5.5.1-1
Update, add license, compile with our own CFLAGS instead of native of buildsystem


----------+
 PKGBUILD |   31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)


Index: extra/lib/crypto++/PKGBUILD
diff -u extra/lib/crypto++/PKGBUILD:1.2 extra/lib/crypto++/PKGBUILD:1.3
--- extra/lib/crypto++/PKGBUILD:1.2	Sun May 21 12:25:46 2006
+++ extra/lib/crypto++/PKGBUILD	Sun Jun 17 12:18:59 2007
@@ -1,26 +1,27 @@
-# Maintainer: Kritoke <kritoke at gamebox.net>
+# $Id: PKGBUILD,v 1.3 2007/06/17 16:18:59 jgc Exp $
+# Maintainer: Damir <damir at archlinux.org>
+# Contributor: Kritoke <kritoke at gamebox.net>
 # Contributor: jlvsimoes <jlvsimoes at oninet.pt>
 
 pkgname=crypto++
-pkgver=5.2.1
-origver=521
+pkgver=5.5.1
+_srcver=551
 pkgrel=1
 pkgdesc="Crypto++ Library is a free C++ class library of cryptographic schemes."
 arch=(i686 x86_64)
-url="http://www.eskimo.com/~weidai/cryptlib.html"
-source=(http://www.eskimo.com/~weidai/cryptopp$origver.zip
-	http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/dev-libs/crypto++/files/crypto++-5.2.1-ubuntu-gcc4.patch)
-md5sums=('82a00c44235ccbae2bedf9cb16c40ac3' '56b38480a2872145c8a47805734eb116')
+license=('custom')
+makedepends=('unzip')
+url="http://www.cryptopp.com/"
+source=(http://www.cryptopp.com/cryptopp${_srcver}.zip)
 
 build() {
-  cd $startdir/src/
-
-  patch -Np1 -i crypto++-5.2.1-ubuntu-gcc4.patch || return 1
-
+  cd ${startdir}/src/
+  sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
   make -f GNUmakefile || return 1
-  mkdir -p $startdir/pkg/usr/include/cryptopp
-  mkdir -p $startdir/pkg/usr/lib
-  cp *.h $startdir/pkg/usr/include/cryptopp
-  cp libcryptopp.a $startdir/pkg/usr/lib
+  mkdir -p ${startdir}/pkg/usr/include/cryptopp
+  mkdir -p ${startdir}/pkg/usr/lib
+  install -m644 *.h ${startdir}/pkg/usr/include/cryptopp/
+  install -m644 libcryptopp.a ${startdir}/pkg/usr/lib/
+  install -D -m644 License.txt ${startdir}/pkg/usr/share/licenses/${pkgname}/License.txt
 }
 




More information about the arch-commits mailing list