updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / sux / PKGBUILD
blob5c04bf544efcdbada2476c0f385c782b0f7100cf
1 # Maintainer: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
3 pkgname=sux
4 pkgver=1.0.1_6
5 pkgrel=2
6 _majorversion=1.0.1
7 pkgdesc="A wrapper around su which will transfer your X credentials"
8 arch=('i686' 'x86_64')
9 url="http://sourceforge.net/projects/sux/"
10 license="custom"
11 depends=('coreutils' 'xorg-xauth')
12 source=(http://ftp.de.debian.org/debian/pool/main/s/${pkgname}/${pkgname}_${pkgver/_/-}.diff.gz
13         http://ftp.de.debian.org/debian/pool/main/s/${pkgname}/${pkgname}_${_majorversion}.orig.tar.gz)
15 build() {
16     cd ${srcdir}/${pkgname}-${_majorversion}
18     # patch with debian patches
19     patch -p0 < ../${pkgname}_${pkgver/_/-}.diff
21     # replace tempfile with mktemp
22     sed -i -e 's|tempfile -p sux|mktemp --tmpdir sux.XXXXXXXXXX|' sux
23     sed -i -e 's|tempfile -p sux|mktemp --tmpdir sux.XXXXXXXXXX|' suxterm
26 package() {
27     cd ${srcdir}/${pkgname}-${_majorversion}
29     # install executables
30     install -D -m775 sux  ${pkgdir}/usr/bin/sux
31     install -D -m775 suxterm  ${pkgdir}/usr/bin/suxterm
33     # install man pages
34     install -D -m644 ${pkgname}-${_majorversion}/debian/sux.1 ${pkgdir}/usr/share/man/man1/sux.1
35     install -D -m644 ${pkgname}-${_majorversion}/debian/suxterm.1 ${pkgdir}/usr/share/man/man1/suxterm.1
37     # install license
38     install -D -m644 ${pkgname}-${_majorversion}/debian/copyright ${pkgdir}/usr/share/licenses/sux/COPYING
42 md5sums=('bbe3a77fb5767d332c4a75636972f6f8'
43          '5bafe1b4a285e6b3c0365e751b8ab494')