[arch-commits] Commit in armagetronad/repos/community-x86_64 (PKGBUILD PKGBUILD)

Balló György bgyorgy at archlinux.org
Mon May 3 10:59:01 UTC 2021


    Date: Monday, May 3, 2021 @ 10:59:00
  Author: bgyorgy
Revision: 926870

archrelease: copy trunk to community-x86_64

Added:
  armagetronad/repos/community-x86_64/PKGBUILD
    (from rev 926869, armagetronad/trunk/PKGBUILD)
Deleted:
  armagetronad/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   97 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 49 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-03 10:58:53 UTC (rev 926869)
+++ PKGBUILD	2021-05-03 10:59:00 UTC (rev 926870)
@@ -1,48 +0,0 @@
-# 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.9.1.0
-pkgrel=1
-pkgdesc='A Tron Clone in 3D.'
-arch=('x86_64')
-url='http://armagetronad.net/'
-license=('GPL')
-depends=('sdl_image' 'libxml2' 'sdl_mixer' 'ftgl')
-makedepends=('python')
-optdepends=('python: language updater')
-#source=("https://downloads.sourceforge.net/sourceforge/armagetronad/armagetronad-$pkgver.src.tar.gz")
-source=("https://downloads.sourceforge.net/sourceforge/armagetronad/armagetronad-$pkgver.tbz")
-md5sums=('038a7add2ea5868c02dbc5cea7fef533')
-
-prepare() {
-     cd "$srcdir/armagetronad-$pkgver"
-     2to3 -w language/update.py
-
-     sed -i 's|FTGL.h|ftgl.h|g' configure
-     sed -i 's|png_check_sig|png_sig_cmp|g' configure
-}
-
-build() {
-     cd "$srcdir/armagetronad-$pkgver"
-     ./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"
-}

Copied: armagetronad/repos/community-x86_64/PKGBUILD (from rev 926869, armagetronad/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-03 10:59:00 UTC (rev 926870)
@@ -0,0 +1,49 @@
+# 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.9.1.0
+pkgrel=2
+pkgdesc='A Tron Clone in 3D.'
+arch=('x86_64')
+url='http://armagetronad.net/'
+license=('GPL')
+depends=('sdl_image' 'libxml2' 'sdl_mixer' 'ftgl' 'hicolor-icon-theme')
+makedepends=('python')
+optdepends=('python: language updater')
+#source=("https://downloads.sourceforge.net/sourceforge/armagetronad/armagetronad-$pkgver.src.tar.gz")
+source=("https://downloads.sourceforge.net/sourceforge/armagetronad/armagetronad-$pkgver.tbz")
+md5sums=('038a7add2ea5868c02dbc5cea7fef533')
+
+prepare() {
+     cd "$srcdir/armagetronad-$pkgver"
+     2to3 -w language/update.py
+
+     sed -i 's|FTGL.h|ftgl.h|g' configure
+     sed -i 's|png_check_sig|png_sig_cmp|g' configure
+     sed -i -r '/desktop-id/ s/(<!-- )|(org.armagetronad.)|( -->)//g' desktop/armagetronad.appdata.xml.in
+}
+
+build() {
+     cd "$srcdir/armagetronad-$pkgver"
+     ./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"
+     for f in 16x16 32x32 48x48; do
+       ln -s /usr/share/armagetronad/desktop/icons/$f/armagetronad.png "$pkgdir/usr/share/icons/hicolor/$f/apps/armagetronad.png"
+     done
+     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