summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7bbdb4f4accea6ffb2e1a0bd8be07b130248ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: James An <james@jamesan.ca>
# Contributor: Michael Fellinger <m.fellinger@gmail.com>

_pkgname=crypt
pkgname="libtom$_pkgname"
pkgver=1.17
pkgrel=9
pkgdesc="A fairly comprehensive, modular and portable cryptographic toolkit"
url="http://libtom.net/?page=features&newsitems=5&whatfile=$_pkgname"
license=('custom:Public Domain' 'custom:WTFPL')
arch=('i686' 'x86_64')
depends=('gmp')
makedepends=('libtommath')
options=('!emptydirs')
source=(
  "http://libtom.net/files/${_pkgname}-${pkgver}.tar.bz2"
  "http://libtom.net/files/${_pkgname}-${pkgver}.tar.bz2.sig"
)
md5sums=('cea7e5347979909f458fe7ebb5a44f85'
         'SKIP')

package() {
  cd ${srcdir}/$pkgname-$pkgver
  make NODOCS=1 DESTDIR="$pkgdir" install
  make NODOCS=1 DESTDIR="$pkgdir" clean
  CFLAGS="-DLTM_DESC -DGMP_DESC" \
  EXTRALIBS="-ltommath -lgmp" \
  make -f makefile.shared NODOCS=1 DESTDIR="$pkgdir" install
}