[arch-commits] Commit in armagetronad/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Mon May 3 10:58:53 UTC 2021
Date: Monday, May 3, 2021 @ 10:58:53
Author: bgyorgy
Revision: 926869
upgpkg: armagetronad 0.2.9.1.0-2: Fix icons, fix metainfo
Modified:
armagetronad/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-03 10:45:00 UTC (rev 926868)
+++ PKGBUILD 2021-05-03 10:58:53 UTC (rev 926869)
@@ -4,12 +4,12 @@
pkgname=armagetronad
pkgver=0.2.9.1.0
-pkgrel=1
+pkgrel=2
pkgdesc='A Tron Clone in 3D.'
arch=('x86_64')
url='http://armagetronad.net/'
license=('GPL')
-depends=('sdl_image' 'libxml2' 'sdl_mixer' 'ftgl')
+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")
@@ -22,6 +22,7 @@
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() {
@@ -39,9 +40,9 @@
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"
+ 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