[arch-commits] Commit in gnome-robots/trunk (PKGBUILD gnome-robots.install)

Jan Steffens heftig at nymeria.archlinux.org
Sun Mar 30 10:11:19 UTC 2014


    Date: Sunday, March 30, 2014 @ 12:11:18
  Author: heftig
Revision: 209215

scores aren't shared anymore

Modified:
  gnome-robots/trunk/PKGBUILD
  gnome-robots/trunk/gnome-robots.install

----------------------+
 PKGBUILD             |    6 +-----
 gnome-robots.install |   36 +-----------------------------------
 2 files changed, 2 insertions(+), 40 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-30 10:07:43 UTC (rev 209214)
+++ PKGBUILD	2014-03-30 10:11:18 UTC (rev 209215)
@@ -22,8 +22,7 @@
 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
 }
 
@@ -30,7 +29,4 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-
-  # Remove all scores, we generate them from postinstall
-  rm -rf "$pkgdir/var"
 }

Modified: gnome-robots.install
===================================================================
--- gnome-robots.install	2014-03-30 10:07:43 UTC (rev 209214)
+++ gnome-robots.install	2014-03-30 10:11:18 UTC (rev 209215)
@@ -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_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
 }




More information about the arch-commits mailing list