diff options
author | Lukas Sabota | 2018-06-23 20:22:46 -0400 |
---|---|---|
committer | Lukas Sabota | 2018-06-23 20:22:46 -0400 |
commit | 74dc63badb2d5d2a9b24e5866f30fb269436449f (patch) | |
tree | c02170f4d3250157efe3f00e79808866128f6c2b | |
parent | b4dca394bcd99035766f6315cc5dcedcb547647e (diff) | |
download | aur-74dc63badb2d5d2a9b24e5866f30fb269436449f.tar.gz |
fix compilation
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 17 insertions, 26 deletions
@@ -1,7 +1,7 @@ pkgbase = ggmud-svn pkgdesc = GTK2 mud client inspired by tintin and sclient. - pkgver = r267 - pkgrel = 1 + pkgver = 273 + pkgrel = 2 url = http://www.ggsoft.org/ggmud/ arch = i686 arch = x86_64 @@ -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" } |