[arch-commits] Commit in xonotic/trunk (4 files)
Sven-Hendrik Haase
svenstaro at nymeria.archlinux.org
Tue Jun 24 10:42:17 UTC 2014
Date: Tuesday, June 24, 2014 @ 12:42:17
Author: svenstaro
Revision: 113493
upgpkg: xonotic 0.7.0-2
Add all icons
Added:
xonotic/trunk/xonotic.install
Modified:
xonotic/trunk/PKGBUILD
xonotic/trunk/xonotic-glx.desktop
xonotic/trunk/xonotic-sdl.desktop
---------------------+
PKGBUILD | 18 +++++++++++++-----
xonotic-glx.desktop | 2 +-
xonotic-sdl.desktop | 2 +-
xonotic.install | 12 ++++++++++++
4 files changed, 27 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-06-24 09:58:43 UTC (rev 113492)
+++ PKGBUILD 2014-06-24 10:42:17 UTC (rev 113493)
@@ -1,20 +1,24 @@
# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
# Contributor: Alexander Suhoverhov <cy at ngs dot ru>
+# Contributor: Jookia <166291 at gmail.com>
pkgname=xonotic
pkgver=0.7.0
-pkgrel=1
+pkgrel=2
pkgdesc="A free, fast-paced crossplatform first-person shooter"
arch=('i686' 'x86_64')
url="http://xonotic.org"
license=('GPL')
-depends=('alsa-lib' 'curl' 'libjpeg>=8' 'libmodplug' 'libvorbis' 'libxpm' 'libxxf86dga' 'libxxf86vm' 'sdl' 'libpng>=1.4.0' 'xonotic-data')
+depends=('alsa-lib' 'curl' 'libjpeg>=8' 'libmodplug' 'libvorbis' 'libxpm' 'libxxf86dga'
+ 'libxxf86vm' 'sdl' 'libpng>=1.4.0' 'xonotic-data' 'hicolor-icon-theme'
+ 'gtk-update-icon-cache' 'desktop-file-utils')
makedepends=('unzip' 'mesa')
source=("http://dl.xonotic.org/xonotic-${pkgver}-source.zip"
"xonotic-glx.desktop"
"xonotic-sdl.desktop")
md5sums=('1cc50a79ac6abf27da916bfb5e066043'
- '914c7b9163e92b35f0ab57fdb1653ac5'
- 'da7d812ff231c9332cd694b39757adda')
+ '129df417236445b086fe78cafd01756c'
+ '2d3367d90889112d73ac2b8c17fb5840')
+install=xonotic.install
build() {
# compile Xonotic-flavored fteqcc
@@ -47,8 +51,12 @@
# convenience files
mkdir -p $pkgdir/usr/share/applications
install -Dm644 $srcdir/*.desktop -t $pkgdir/usr/share/applications
- install -Dm644 $srcdir/Xonotic/misc/logos/icons_png/xonotic_512.png $pkgdir/usr/share/pixmaps/xonotic.png
+ for size in 16 22 24 32 48 64 128 256 512; do
+ install -Dm644 $srcdir/Xonotic/misc/logos/icons_png/xonotic_${size}.png \
+ "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/xonotic.png"
+ done
+
# crypto stuff
cd $srcdir/Xonotic/source/d0_blind_id
make DESTDIR=$pkgdir install
Modified: xonotic-glx.desktop
===================================================================
--- xonotic-glx.desktop 2014-06-24 09:58:43 UTC (rev 113492)
+++ xonotic-glx.desktop 2014-06-24 10:42:17 UTC (rev 113493)
@@ -4,7 +4,7 @@
Encoding=UTF-8
Name=Xonotic (GLX)
Comment=a free open-source first person shooter
-Icon=/usr/share/pixmaps/xonotic.png
+Icon=xonotic
Exec=/usr/bin/xonotic-glx
Terminal=false
StartupNotify=false
Modified: xonotic-sdl.desktop
===================================================================
--- xonotic-sdl.desktop 2014-06-24 09:58:43 UTC (rev 113492)
+++ xonotic-sdl.desktop 2014-06-24 10:42:17 UTC (rev 113493)
@@ -4,7 +4,7 @@
Encoding=UTF-8
Name=Xonotic (SDL)
Comment=a free open-source first person shooter
-Icon=/usr/share/pixmaps/xonotic.png
+Icon=xonotic
Exec=/usr/bin/xonotic-sdl
Terminal=false
StartupNotify=false
Added: xonotic.install
===================================================================
--- xonotic.install (rev 0)
+++ xonotic.install 2014-06-24 10:42:17 UTC (rev 113493)
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list