1 # Maintainer: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
7 pkgdesc="A wrapper around su which will transfer your X credentials"
9 url="http://sourceforge.net/projects/sux/"
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)
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
27 cd ${srcdir}/${pkgname}-${_majorversion}
30 install -D -m775 sux ${pkgdir}/usr/bin/sux
31 install -D -m775 suxterm ${pkgdir}/usr/bin/suxterm
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
38 install -D -m644 ${pkgname}-${_majorversion}/debian/copyright ${pkgdir}/usr/share/licenses/sux/COPYING
42 md5sums=('bbe3a77fb5767d332c4a75636972f6f8'
43 '5bafe1b4a285e6b3c0365e751b8ab494')