[arch-commits] Commit in gnome-robots/repos (6 files)
Jan de Groot
jgc at nymeria.archlinux.org
Tue Apr 2 12:59:31 UTC 2013
Date: Tuesday, April 2, 2013 @ 14:59:31
Author: jgc
Revision: 181213
archrelease: copy trunk to gnome-unstable-i686, gnome-unstable-x86_64
Added:
gnome-robots/repos/gnome-unstable-i686/
gnome-robots/repos/gnome-unstable-i686/PKGBUILD
(from rev 181212, gnome-robots/trunk/PKGBUILD)
gnome-robots/repos/gnome-unstable-i686/gnome-robots.install
(from rev 181212, gnome-robots/trunk/gnome-robots.install)
gnome-robots/repos/gnome-unstable-x86_64/
gnome-robots/repos/gnome-unstable-x86_64/PKGBUILD
(from rev 181212, gnome-robots/trunk/PKGBUILD)
gnome-robots/repos/gnome-unstable-x86_64/gnome-robots.install
(from rev 181212, gnome-robots/trunk/gnome-robots.install)
--------------------------------------------+
gnome-unstable-i686/PKGBUILD | 36 ++++++++++++++++++++
gnome-unstable-i686/gnome-robots.install | 47 +++++++++++++++++++++++++++
gnome-unstable-x86_64/PKGBUILD | 36 ++++++++++++++++++++
gnome-unstable-x86_64/gnome-robots.install | 47 +++++++++++++++++++++++++++
4 files changed, 166 insertions(+)
Copied: gnome-robots/repos/gnome-unstable-i686/PKGBUILD (from rev 181212, gnome-robots/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-i686/PKGBUILD (rev 0)
+++ gnome-unstable-i686/PKGBUILD 2013-04-02 12:59:31 UTC (rev 181213)
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 168943 2012-10-16 16:31:44Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gnome-robots
+pkgver=3.8.0
+pkgrel=1
+pkgdesc="Avoid the robots and make them crash into each other"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('desktop-file-utils' 'hicolor-icon-theme' 'gtk3' 'libcanberra' 'librsvg')
+makedepends=('intltool' 'itstool' 'gobject-introspection')
+conflicts=('gnome-games')
+replaces=('gnome-games')
+options=('!emptydirs' '!libtool')
+install=gnome-robots.install
+url="https://live.gnome.org/Robots"
+groups=('gnome-extra')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
+sha256sums=('48da2d25806413fdef36fc8eb403af2f7edc16e180e9785229aebb8e1805e8cf')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-schemas-compile \
+ --with-scores-user=root --with-scores-group=games
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # Remove all scores, we generate them from postinstall
+ rm -rf "$pkgdir/var"
+}
Copied: gnome-robots/repos/gnome-unstable-i686/gnome-robots.install (from rev 181212, gnome-robots/trunk/gnome-robots.install)
===================================================================
--- gnome-unstable-i686/gnome-robots.install (rev 0)
+++ gnome-unstable-i686/gnome-robots.install 2013-04-02 12:59:31 UTC (rev 181213)
@@ -0,0 +1,47 @@
+_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() {
+ post_install
+}
+
+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
+}
Copied: gnome-robots/repos/gnome-unstable-x86_64/PKGBUILD (from rev 181212, gnome-robots/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD 2013-04-02 12:59:31 UTC (rev 181213)
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 168943 2012-10-16 16:31:44Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gnome-robots
+pkgver=3.8.0
+pkgrel=1
+pkgdesc="Avoid the robots and make them crash into each other"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('desktop-file-utils' 'hicolor-icon-theme' 'gtk3' 'libcanberra' 'librsvg')
+makedepends=('intltool' 'itstool' 'gobject-introspection')
+conflicts=('gnome-games')
+replaces=('gnome-games')
+options=('!emptydirs' '!libtool')
+install=gnome-robots.install
+url="https://live.gnome.org/Robots"
+groups=('gnome-extra')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
+sha256sums=('48da2d25806413fdef36fc8eb403af2f7edc16e180e9785229aebb8e1805e8cf')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-schemas-compile \
+ --with-scores-user=root --with-scores-group=games
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ # Remove all scores, we generate them from postinstall
+ rm -rf "$pkgdir/var"
+}
Copied: gnome-robots/repos/gnome-unstable-x86_64/gnome-robots.install (from rev 181212, gnome-robots/trunk/gnome-robots.install)
===================================================================
--- gnome-unstable-x86_64/gnome-robots.install (rev 0)
+++ gnome-unstable-x86_64/gnome-robots.install 2013-04-02 12:59:31 UTC (rev 181213)
@@ -0,0 +1,47 @@
+_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() {
+ post_install
+}
+
+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
+}
More information about the arch-commits
mailing list