updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / ggmud-svn / PKGBUILD
blob72dc2ee7f963d8b5a4663df6457863b26eb93144
1 # Maintainer: Lukas Sabota (admin@xannode.com)
2 # Contributor: Lukas Sabota (admin@xannode.com)
3 pkgname=ggmud-svn
4 pkgver=249
5 pkgrel=1
6 pkgdesc="GTK2 mud client inspired by tintin and sclient."
7 arch=('i686' 'x86_64')
8 url="http://www.ggsoft.org/ggmud/"
9 license=('GPL')
10 depends=('gtk2')
11 makedepends=('subversion')
13 _svntrunk=https://ggmud.svn.sourceforge.net/svnroot/ggmud/trunk/ggmud
14 _svnmod=ggmud
16 build() {
17   cd "$srcdir"
19   if [ -d $_svnmod/.svn ]; then
20     (cd $_svnmod && svn up -r $pkgver)
21   else
22     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
23   fi
25   msg "SVN checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf "$srcdir/$_svnmod-build"
29   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
30   cd "$srcdir/$_svnmod-build"
33 package() {
34   cd "$srcdir/$_svnmod-build"
35   # fix compilation errors
36   sed s/--as-needed// Makefile > Makefile.new
37   mv Makefile.new Makefile
38   make CC="gcc $CFLAGS"
39   install -D -m755 ggmud "$pkgdir/usr/bin/$pkgname"
40   install -D -m644 "gg_help.txt" "${pkgdir}/usr/share/$pkgname/gg_help.txt" || return 1
42   #.desktop + icon file -- commented out in order to not conflict with ggmud
43   #   feel free to uncomment
44   #install -D -m644 "${srcdir}/ggmud/ggmud.desktop" \
45   #    "${pkgdir}/usr/share/applications/$pkgname.desktop" || return 1
46   #install -D -m644 "${srcdir}/ggmud/ggmud.png" \
47   #    "${pkgdir}/usr/share/pixmaps/$pkgname.png" || return 1