desktop/crypto++/PKGBUILD

37 lines
881 B
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=crypto++
_pkgname=cryptopp
pkgver=5.6.1
_pkgver=561
pkgrel=1
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')
build() {
cd $srcdir
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
make -f GNUmakefile || return 1
}
package() {
install -d $pkgdir/usr/{lib,include/cryptopp}
install -m644 *.h $pkgdir/usr/include/$_pkgname/
install -m644 libcryptopp.a $pkgdir/usr/lib/
# License:
install -D -m644 License.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}