Skip to content
Snippets Groups Projects
Commit f9de037a authored by Balló György's avatar Balló György :flag_hu:
Browse files

Fix icons, fix metainfo

parent 88be9dc1
No related branches found
Tags 0.2.9.1.0-2
No related merge requests found
......@@ -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 @@ prepare() {
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 @@ 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"
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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment