archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libtomcrypt / repos / extra-x86_64 / PKGBUILD
blob3bd181e2f050fe23a1783546cda8a095f1ceae08
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrey Vihrov <andrey.vihrov at gmail.com>
3 # Contributor: James An <james@jamesan.ca>
4 # Contributor: Michael Fellinger <m.fellinger@gmail.com>
6 pkgname=libtomcrypt
7 pkgver=1.18.2
8 pkgrel=1
9 pkgdesc="A fairly comprehensive, modular and portable cryptographic toolkit"
10 arch=('x86_64')
11 url="https://www.libtom.net/LibTomCrypt/"
12 license=('custom:PublicDomain')
13 depends=('libtommath' 'gmp')
14 source=("https://github.com/libtom/$pkgname/releases/download/v$pkgver/${pkgname#libtom}-$pkgver.tar.xz"{,.asc})
15 sha256sums=('96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84'
16             'SKIP')
17 validpgpkeys=('C4386A237ED43A475541B9427B2CD0DD4BCFF59B') # Steffen Jaeckel <s_jaeckel@gmx.de>
19 build() {
20   cd $pkgname-$pkgver
22   export CPPFLAGS+=" -DLTM_DESC -DGMP_DESC -DUSE_LTM"
23   export EXTRALIBS="-ltommath -lgmp"
24   make -f makefile.shared IGNORE_SPEED=1 library test
27 check() {
28   cd $pkgname-$pkgver
29   ./test
32 package() {
33   cd $pkgname-$pkgver
35   make -f makefile.shared DESTDIR="$pkgdir" PREFIX="/usr" INSTALL_GROUP="root" INSTALL_OPTS="" install
37   install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
40 # vim:set ts=2 sw=2 et: