summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishnu V. Krishnan2021-08-19 11:25:07 +0530
committerVishnu V. Krishnan2021-08-19 11:25:07 +0530
commit40c38a87b503b74a4bdcd5f019d894ff2edccd2a (patch)
tree3ff56c0d882cfca6590dfce47ae80bfbc49006d6
parenta9a795f892c73ecfc544060c430ebb69ff4fb42b (diff)
downloadaur-armagetronad-git.tar.gz
icons
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 7 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a25e7c64d5b..3f6ae00a26b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -12,6 +12,7 @@ pkgbase = armagetronad-git
depends = ftgl
depends = boost-libs
depends = protobuf
+ depends = hicolor-icon-theme
optdepends = python: language updater
optdepends = glew: Graphics on X11
optdepends = glew-wayland: Graphics on Wayland
@@ -21,4 +22,3 @@ pkgbase = armagetronad-git
sha1sums = SKIP
pkgname = armagetronad-git
-
diff --git a/PKGBUILD b/PKGBUILD
index 89f6f11d4e1..b72e3c66a55 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ pkgdesc='A Tron Clone in 3D.'
arch=('x86_64')
url='http://armagetronad.net/'
license=('GPL')
-depends=('sdl2_image' 'libxml2' 'sdl2_mixer' 'ftgl' 'boost-libs' 'protobuf')
+depends=('sdl2_image' 'libxml2' 'sdl2_mixer' 'ftgl' 'boost-libs' 'protobuf' 'hicolor-icon-theme')
optdepends=('python: language updater' 'glew: Graphics on X11' 'glew-wayland: Graphics on Wayland')
makedepends=('boost')
provides=('armagetronad')
@@ -32,9 +32,9 @@ prepare(){
build() {
cd "${srcdir}/${_pkgname}"
-
+
./bootstrap.sh
-
+
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
@@ -48,9 +48,9 @@ package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
install -D -m 644 "desktop/${_pkgname}-armagetronad.desktop" "${pkgdir}/usr/share/applications/${_pkgname}-armagetronad.desktop"
- install -d "${pkgdir}/usr/share/pixmaps/"
- ln -s /usr/share/armagetronad/desktop/icons/large/armagetronad.png \
- "${pkgdir}/usr/share/pixmaps/${_pkgname}-armagetronad.png"
+ for directory in 16x16 32x32 48x48; do
+ ln -s /usr/share/armagetronad/desktop/icons/${directory}/armagetronad.png "$pkgdir/usr/share/icons/hicolor/${directory}/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"