blob: 89a456fa42583b6c72092dacf256b0a956ba5a5d (
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
|
# $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' 'mips64el')
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
}
|