[arch-commits] Commit in armagetronad/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Nov 10 01:08:05 UTC 2018


    Date: Saturday, November 10, 2018 @ 01:08:05
  Author: foutrelis
Revision: 405604

archrelease: copy trunk to community-staging-x86_64

Added:
  armagetronad/repos/community-staging-x86_64/
  armagetronad/repos/community-staging-x86_64/PKGBUILD
    (from rev 405603, armagetronad/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: armagetronad/repos/community-staging-x86_64/PKGBUILD (from rev 405603, armagetronad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-10 01:08:05 UTC (rev 405604)
@@ -0,0 +1,44 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+# Contributor: Filippo 'JoeyrS' Civiletti <joeyrs at gmail.com>
+
+pkgname=armagetronad
+pkgver=0.2.8.3.4
+pkgrel=2
+pkgdesc='A Tron Clone in 3D.'
+arch=('x86_64')
+url='http://armagetronad.net/'
+license=('GPL')
+depends=('sdl_image' 'libxml2' 'sdl_mixer' 'ftgl')
+optdepends=('python2: language updater')
+source=(http://downloads.sourceforge.net/sourceforge/armagetronad/armagetronad-$pkgver.src.tar.gz)
+md5sums=('c51c858b6b10f48606514cc1ef8a6dad')
+
+build() {
+     cd "$srcdir/armagetronad-$pkgver"
+
+     # python2 fix
+     sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' language/update.py
+
+     sed -i 's|FTGL.h|ftgl.h|g' configure
+     sed -i 's|png_check_sig|png_sig_cmp|g' configure
+     ./configure --prefix=/usr \
+        --sysconfdir=/etc \
+        --mandir=/usr/share/man \
+        --disable-games \
+        --enable-automakedefaults \
+        --disable-uninstall
+     make
+}
+
+package() {
+     cd "$srcdir/armagetronad-$pkgver"
+     make DESTDIR="$pkgdir" install
+     install -D -m 644 "desktop/armagetronad.desktop" "$pkgdir/usr/share/applications/armagetronad.desktop"
+     install -d "$pkgdir/usr/share/pixmaps/"
+     ln -s /usr/share/armagetronad/desktop/icons/large/armagetronad.png \
+           "$pkgdir/usr/share/pixmaps/armagetronad.png"
+     mv "$pkgdir/usr/bin/armagetronad" "$pkgdir/usr/bin/armagetronad_bin"
+     printf "#!/bin/bash\n/usr/bin/armagetronad_bin --configdir /etc/armagetronad --datadir /usr/share/armagetronad" > "$pkgdir/usr/bin/armagetronad"
+     chmod +x "$pkgdir/usr/bin/armagetronad"
+}


More information about the arch-commits mailing list