blob: b745a8d0269fed5254fe2be9224727509a8fa638 (
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
30
31
32
33
34
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
pkgname=sux
pkgver=1.0.1
pkgrel=4
pkgdesc='Wrapper around su which will transfer your X credentials'
arch=('any')
url='http://sourceforge.net/projects/sux/'
license=('custom')
depends=('coreutils' 'xorg-xauth')
source=("http://downloads.sourceforge.net/project/sux/sux/$pkgver/sux-$pkgver.tar.gz")
md5sums=('73613f8515e0d90bdd9e871b6fe2e2eb')
build() {
cd "sux-$pkgver"
sed -i -e 's|sux_i -eq 9|sux_i -eq 8|' sux
sed -i -e 's|tempfile -p sux|mktemp --tmpdir sux.XXXXXXXXXX|' sux
sed -i -e 's|tempfile -p sux|mktemp --tmpdir sux.XXXXXXXXXX|' suxterm
}
package() {
cd "sux-$pkgver"
install -Dm775 sux ${pkgdir}/usr/bin/sux
install -Dm775 suxterm ${pkgdir}/usr/bin/suxterm
install -Dm644 debian/sux.1 ${pkgdir}/usr/share/man/man1/sux.1
install -Dm644 debian/suxterm.1 ${pkgdir}/usr/share/man/man1/suxterm.1
install -Dm644 debian/copyright ${pkgdir}/usr/share/licenses/sux/COPYING
}
# vim:set ts=2 sw=2 et:
|