diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-15 03:26:32 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-15 03:26:32 +0000 |
commit | ad45d1982b97faa9372d99e51daa687c7c09de7d (patch) | |
tree | af490221f2b733b8f0cf68f3898566d5049c3ab4 /extra/gnome-robots | |
parent | 7c266ff5a9e1f533fd8bd8c2fbbcc05df350dcd3 (diff) |
Tue Apr 15 03:22:01 UTC 2014
Diffstat (limited to 'extra/gnome-robots')
-rw-r--r-- | extra/gnome-robots/PKGBUILD | 14 | ||||
-rw-r--r-- | extra/gnome-robots/gnome-robots.install | 36 |
2 files changed, 6 insertions, 44 deletions
diff --git a/extra/gnome-robots/PKGBUILD b/extra/gnome-robots/PKGBUILD index ff69e7b70..55b55b77d 100644 --- a/extra/gnome-robots/PKGBUILD +++ b/extra/gnome-robots/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 205062 2014-02-04 00:47:45Z heftig $ +# $Id: PKGBUILD 210478 2014-04-14 20:06:44Z jgc $ # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Contributor: Jan de Groot <jgc@archlinux.org> pkgname=gnome-robots -pkgver=3.10.2 +pkgver=3.12.0 pkgrel=1 pkgdesc="Avoid the robots and make them crash into each other" arch=('i686' 'x86_64') @@ -16,21 +16,17 @@ options=('!emptydirs') install=gnome-robots.install url="https://live.gnome.org/Robots" groups=('gnome-extra') -source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz) -sha256sums=('7d568e2fc21c86ad53e95689b9fb9dc079c2ad260a955bbaf17f2cf740f45713') +source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz) +sha256sums=('8d31c32636689bef4badf19477a2a5b32e0cd08d244a5eb587180c472ff56f50') build() { cd $pkgname-$pkgver ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --disable-schemas-compile \ - --with-scores-user=root --with-scores-group=games + --disable-schemas-compile make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install - - # Remove all scores, we generate them from postinstall - rm -rf "$pkgdir/var" } diff --git a/extra/gnome-robots/gnome-robots.install b/extra/gnome-robots/gnome-robots.install index 3422e0c8a..d04cdce36 100644 --- a/extra/gnome-robots/gnome-robots.install +++ b/extra/gnome-robots/gnome-robots.install @@ -1,35 +1,7 @@ -_scores=( - gnome-robots2.robots2.scores - gnome-robots2.robots2-safe.scores - gnome-robots2.robots2-super-safe.scores - gnome-robots2.robots2_easy.scores - gnome-robots2.robots2_easy-safe.scores - gnome-robots2.robots2_easy-super-safe.scores - gnome-robots2.classic_robots.scores - gnome-robots2.classic_robots-safe.scores - gnome-robots2.classic_robots-super-safe.scores - gnome-robots2.robots_with_safe_teleport.scores - gnome-robots2.robots_with_safe_teleport-safe.scores - gnome-robots2.robots_with_safe_teleport-super-safe.scores - gnome-robots2.nightmare.scores - gnome-robots2.nightmare-safe.scores - gnome-robots2.nightmare-super-safe.scores -) - post_install() { glib-compile-schemas usr/share/glib-2.0/schemas update-desktop-database -q gtk-update-icon-cache -q -f usr/share/icons/hicolor - - for score in "${_scores[@]}" ; do - if [ -e "var/games/$score" ]; then - continue - fi - - touch "var/games/$score" - chown root:games "var/games/$score" - chmod 664 "var/games/$score" - done } post_upgrade() { @@ -37,11 +9,5 @@ post_upgrade() { } post_remove() { - glib-compile-schemas usr/share/glib-2.0/schemas - update-desktop-database -q - gtk-update-icon-cache -q -f usr/share/icons/hicolor - - for score in "${_scores[@]}" ; do - rm -f "var/games/$score" - done + post_install } |