updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / trousers / PKGBUILD
blob0e8f9519409ca1bed82fd8f94dbebecc4b465a23
1 # Maintainer: Robert Buhren <robert@robertbuhren.de>
2 # Contributor: Gavin Lloyd <gavinhungry@gmail.com>
3 # Contributor: xav <xav at ethertricks dot net>
4 # Contributor: julian <pidanc_j at epita dot fr>
6 pkgname=trousers
7 pkgver=0.3.8
8 pkgrel=1
9 pkgdesc="Open-source TCG Software Stack implementation for use with a TPM"
10 arch=('i686' 'x86_64')
11 url="http://sourceforge.net/projects/trousers"
12 license=('CPL')
13 depends=('openssl')
14 install=${pkgname}.install
15 source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz
16         no-werror.patch
17         tss-user.patch
18         ${pkgname}.install
19         tcsd)
20 md5sums=('6411e70e24e55a22885193484f6669be'
21          '7b9db39b3144194d691e703cf6bb4afd'
22          'c69c679b5dc64974c450f6f094f6b522'
23          '3808cb22913851d0e93349cbac7b2900'
24          '9fa52c5a41ddc58e7826488424db310a')
26 build() {
27   cd ${srcdir}
28   patch -p 0 < no-werror.patch
29   patch -p 0 < tss-user.patch
31   cd ${srcdir}/${pkgname}-${pkgver}
32   ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --with-openssl=/usr
33   ln -sf `which libtool` libtool
34   make
37 package() {
38   cd ${srcdir}/${pkgname}-${pkgver}
39   make DESTDIR=${pkgdir} install
40   install -Dm755 ${srcdir}/tcsd ${pkgdir}/etc/rc.d/tcsd