diff options
Diffstat (limited to 'community/gnomesu/PKGBUILD')
-rw-r--r-- | community/gnomesu/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/community/gnomesu/PKGBUILD b/community/gnomesu/PKGBUILD new file mode 100644 index 000000000..3cfd444da --- /dev/null +++ b/community/gnomesu/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 7581 2010-01-08 03:42:33Z dgriffiths $ +# Maintainer: Eric Belanger <belanger@astro.umontreal.ca> +# Contributor: Kritoke <kritoke@nospam.gmail.com> + +pkgname=gnomesu +pkgver=0.3.1 +pkgrel=6 +pkgdesc="A program that allows a user to su to root in a Gnome environment." +arch=('i686' 'x86_64') +url="http://www.gtkfiles.org/app.php/GnomeSu" +license=("GPL") +depends=('libgnomeui' 'libzvt') +makedepends=('pkgconfig') +conflicts=('libgnomesu') +source=(http://downloads.sourceforge.net/sourceforge/xsu/$pkgname-$pkgver.tar.gz) +md5sums=('8ebcf248b4f8430c96d80379ec2acdd8') + +build() { + cd $startdir/src/$pkgname-$pkgver + sed -i 's/1.4/1.10/' configure || return 1 + sed -i 's/gsu/gnomesu/' xsu.desktop.in || return 1 + sed -i 's/gnome-warning/dialog-warning/' xsu.desktop.in || return 1 + sed -i 's|gnome-warning|/usr/share/icons/gnome/16x16/status/dialog-warning|' src/xsu.c || return 1 + ./configure --prefix=/usr --mandir=/usr/share + make CFLAGS+=-Wl,-export-dynamic || return 1 + make DESTDIR=$startdir/pkg install + install -D -m644 xsu.desktop $startdir/pkg/usr/share/applications/gnomesu.desktop + rm -r $startdir/pkg/usr/share/gnome + mv $pkgdir/usr/doc $pkgdir/usr/share/doc +} |