diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 15 insertions, 24 deletions
@@ -1,8 +1,8 @@ # Maintainer: Lukas Sabota (lukas@lwsabota.com) # Contributor: Lukas Sabota (lukas@lwsabota.com) pkgname=ggmud-svn -pkgver=r267 -pkgrel=1 +pkgver=273 +pkgrel=2 pkgdesc="GTK2 mud client inspired by tintin and sclient." arch=('i686' 'x86_64') url="http://www.ggsoft.org/ggmud/" @@ -12,33 +12,24 @@ makedepends=('subversion') source=(svn://svn.code.sf.net/p/ggmud/code/trunk/ggmud/) sha256sums=('SKIP') -_svnmod=ggmud - pkgver() { - cd "$_svnmod" - local ver="$(svnversion)" - printf "r%s" "${ver//[[:alpha:]]}" + cd ggmud + local ver="$(svnversion)" + printf "r%s" "${ver//[[:alpha:]]}" } build() { - cd "$srcdir" - - rm -rf "$srcdir/$_svnmod-build" - cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build" - cd "$srcdir/$_svnmod-build" - sed -i "s/--as-needed//g" Makefile - make + mkdir -p ggmud/build + cd ggmud/build + sed -i "s/httpfetch zlib/httpfetch zlib m dl/" ../CMakeLists.txt + cmake ../ + make } package() { - cd "$srcdir/$_svnmod-build" - install -D -m755 ggmud "$pkgdir/usr/bin/$pkgname" - install -D -m644 "gg_help.txt" "${pkgdir}/usr/share/$pkgname/gg_help.txt" - - #.desktop + icon file -- commented out in order to not conflict with ggmud - # feel free to uncomment - #install -D -m644 "${srcdir}/ggmud/ggmud.desktop" \ - # "${pkgdir}/usr/share/applications/$pkgname.desktop" || return 1 - #install -D -m644 "${srcdir}/ggmud/ggmud.png" \ - # "${pkgdir}/usr/share/pixmaps/$pkgname.png" || return 1 + cd ggmud/build + install -D -m755 ggmud "$pkgdir/usr/bin/$pkgname" + install -D -m644 ../gg_help.txt "${pkgdir}/usr/share/$pkgname/gg_help.txt" + install -D -m644 "${srcdir}/ggmud/ggmud.desktop" "${pkgdir}/usr/share/applications/$pkgname.desktop" + install -D -m644 "${srcdir}/ggmud/ggmud.png" "${pkgdir}/usr/share/pixmaps/$pkgname.png" } |