summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSimon Perry (Pezz)2019-06-25 12:28:42 +1000
committerSimon Perry (Pezz)2019-06-25 12:28:42 +1000
commit9a9732a00cc7addbe161903769ed3fa6ff496647 (patch)
treeb6af0274a0dc763a61f768a86576d0fd16207376 /PKGBUILD
downloadaur-9a9732a00cc7addbe161903769ed3fa6ff496647.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4b4468b48b4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Simon Perry <aur [at] sanxion [dot] net>
+pkgname=axmud
+_relname="Axmud"
+_relpkg="Games-$_relname"
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="GTK3 Multi-User Dungeon (MUD) client"
+arch=('any')
+url="https://axmud.sourceforge.io/"
+license=('GPL3' 'LGPL3')
+depends=('glib2' 'gtk3' 'wmctrl' 'perl-archive-extract' 'perl-archive-zip' 'perl-file-copy-recursive' 'perl-file-homedir' 'perl-file-sharedir' 'perl-file-sharedir-install' 'perl-goocanvas2' 'perl-gtk3' 'perl-io-socket-inet6' 'perl-io-socket-ssl' 'perl-ipc-run' 'perl-json' 'perl-net-openssh' 'perl-path-tiny' 'perl-regexp-ipv6' 'perl-x11-wmctrl')
+optdepends=('sox' 'timidity++')
+source=("$pkgname-$pkgver.tar.gz::https://downloads.sourceforge.net/project/$pkgname/$_relname-$pkgver/$_relpkg-$pkgver.tar.gz" axmud.desktop)
+
+sha256sums=('bc0f7cece3c28f9b5dc79b2c9bb1fcb5377962331c1320c6f12e5c5b43a85da9'
+ 'ff608e34d1da13eddaf8be64880a24ad204f710a081410188b25be8b2dcd89dd')
+
+build() {
+ cd "$srcdir/$_relpkg-$pkgver"
+
+ perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ cd "$srcdir/$_relpkg-$pkgver"
+ make DESTDIR=${pkgdir} install
+
+ install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -Dm644 "$srcdir/$_relpkg-$pkgver/share/icons/system/dialogue_icon_large.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+ install -Dm644 "$srcdir/$_relpkg-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "$srcdir/$_relpkg-$pkgver/COPYING.LESSER" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LESSER"
+
+ # Remove .packlist and perllocal.pod files
+ find ${pkgdir} -name '.packlist' -delete
+ find ${pkgdir} -name 'perllocal.pod' -delete
+}
+# vim: ts=2 sw=2 et: