#Maintainer: Dimitris Jemos #Mandatory pkgname=cryptopp pkgver=5.6.0 pkgrel=1dj arch=x86_64 source=(http://www.cryptopp.com/$pkgname\560.zip) #Optional docs=("readme.txt" "license.txt") url=http://www.cryptopp.com slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "cryptopp (library of cryptographic schemes)" "Crypto++ Library is a free C++ class library of cryptographic schemes" ) build() { cd $startdir/src/ # Fix Makefile to build with correct flags and install correctly on x86_64. sed -i "s/-march=native -mtune=native/$CFLAGS/" GNUmakefile || return 1 sed -i -e "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile || return 1 sed -i "s/\$(PREFIX)\//\$(DESTDIR)\/\$(PREFIX)\//g" GNUmakefile || return 1 make || return 1 make install DESTDIR=$startdir/pkg || return 1 }