updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / ktsuss-svn / PKGBUILD
blobe1bf7e4d1f33d27943776a43ccf55c491c3a1812
1 # Maintainer: Valere Monseur <valere dot monseur at ymail dot com>
2 # Contributor: Alexander Fehr <pizzapunk gmail com>
4 pkgname=ktsuss-svn
5 pkgver=9
6 pkgrel=2
7 pkgdesc="Graphical version of su written in C and GTK+"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/ktsuss"
10 license=('BSD')
11 depends=('gtk2')
12 provides=('ktsuss')
13 conflicts=('ktsuss')
14 makedepends=('subversion')
16 _svntrunk=http://ktsuss.googlecode.com/svn/trunk/
17 _svnmod=ktsuss
19 build() {
20   cd "$srcdir"
22   if [ -d "$_svnmod/.svn" ]; then
23     (cd "$_svnmod" && svn up)
24   else
25     svn co "$_svntrunk" --config-dir ./ "$_svnmod"
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   cd "$srcdir/$_svnmod"
33   if [ ! -x ./configure ]; then
34     ./autogen.sh
35   fi
37   ./configure --prefix=/usr --libexecdir=/usr/lib/ktsuss
38   make
41 package() {
42   cd "$srcdir/$_svnmod"
44   make DESTDIR="$pkgdir" install
45   install -D -m644 COPYING "$pkgdir/usr/share/licenses/ktsuss/COPYING"