updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / xtrlock-pam / PKGBUILD
blob6b3b58a4412114cacffd68a8c830f6de970d194f
1 # Maintainer: Edward Tjörnhammar <xhemi@cube2.se>
2 # Contributor: Michal Hybner <dta081@gmail.com>
3 # Additional Contributor: Edward Tjörnhammar <xhemi@cube2.se>
4 pkgname=xtrlock-pam
5 pkgver=2.0
6 pkgrel=1
7 pkgdesc="Minimal X display locking program"
8 arch=('i686' 'x86_64')
9 url="http://packages.debian.org/xtrlock"
10 license=('GPL')
11 conflicts=('xtrlock')
12 replaces=('xtrlock')
13 depends=('libx11' 'pam')
14 source=(http://ftp.debian.org/debian/pool/main/x/xtrlock/xtrlock_${pkgver}-12.tar.gz)
15 md5sums=('be75a389f84fa9548ee04f367480f23e')
17 build() {
18         _S=$startdir/src
19   _D=$startdir/pkg
20   pushd $_S/${pkgname%%-pam}-$pkgver/
21         patch -p1 < ../../pam.patch
22         make -f Makefile.noimake CFLAGS="-DSHADOW_PWD" LDLIBS="-lX11 -lcrypt" xtrlock || return 1
23         install -D --mode=4755 --verbose xtrlock $_D/usr/bin/xtrlock
24         install -D --mode=644 --verbose xtrlock.man $_D/usr/man/man1/xtrlock.1x
25   popd