mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
30 lines
903 B
Bash
30 lines
903 B
Bash
pkgname=crypto++
|
|
_pkgname=cryptopp
|
|
pkgver=5.6.5
|
|
_pkgver=${pkgver//./}
|
|
pkgrel=1
|
|
pkgdesc="C++ class library of cryptographic schemes."
|
|
arch=('x86_64')
|
|
url="http://www.cryptopp.com"
|
|
license=('custom')
|
|
depends=('gcc-libs')
|
|
makedepends=('unzip')
|
|
source=($url/$_pkgname$_pkgver.zip
|
|
libcrypto++.pc)
|
|
md5sums=('df5ef4647b4e978bba0cac79a83aaed5'
|
|
'46de3847c59ad16456fa863eb33e73b2')
|
|
|
|
# The code below has been copied from the Arch Linux PKGBUILD.
|
|
build() {
|
|
CXXFLAGS+=" -DNDEBUG -fPIC" make -f GNUmakefile-cross
|
|
make libcryptopp.so
|
|
}
|
|
|
|
package() {
|
|
install -d ${pkgdir}/usr/{lib/pkgconfig,include/cryptopp}
|
|
install -m644 *.h ${pkgdir}/usr/include/cryptopp/
|
|
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"
|
|
}
|