mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
|
# $Id: PKGBUILD 1283 2009-08-14 14:17:22Z dgriffiths $
|
||
|
# Maintainer: Eric Belanger <belanger@astro.umontreal.ca>
|
||
|
# Contributor: Kritoke <kritoke@nospam.gmail.com>
|
||
|
|
||
|
pkgname=gnomesu
|
||
|
pkgver=0.3.1
|
||
|
pkgrel=5
|
||
|
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
|
||
|
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
|
||
|
}
|