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>
9 pkgdesc="A fairly comprehensive, modular and portable cryptographic toolkit"
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'
17 validpgpkeys=('C4386A237ED43A475541B9427B2CD0DD4BCFF59B') # Steffen Jaeckel <s_jaeckel@gmx.de>
22 export CPPFLAGS+=" -DLTM_DESC -DGMP_DESC -DUSE_LTM"
23 export EXTRALIBS="-ltommath -lgmp"
24 make -f makefile.shared IGNORE_SPEED=1 library test
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: