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

Jan Steffens heftig at nymeria.archlinux.org
Sun Mar 30 00:29:45 UTC 2014


    Date: Sunday, March 30, 2014 @ 01:29:45
  Author: heftig
Revision: 209198

3.12.0

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

-----------------------+
 PKGBUILD              |   10 +++-------
 gnome-nibbles.install |   29 +----------------------------
 2 files changed, 4 insertions(+), 35 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-30 00:26:58 UTC (rev 209197)
+++ PKGBUILD	2014-03-30 00:29:45 UTC (rev 209198)
@@ -3,7 +3,7 @@
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
 pkgname=gnome-nibbles
-pkgver=3.10.1
+pkgver=3.12.0
 pkgrel=1
 pkgdesc="Guide a worm around a maze"
 arch=('i686' 'x86_64')
@@ -17,13 +17,12 @@
 url="https://live.gnome.org/Nibbles"
 groups=('gnome-extra')
 source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz)
-sha256sums=('af659b52974493a618de5c288427aea2ebece9c90b5dd075a31c2a4d502d0ef9')
+sha256sums=('9be26c54411b11d05eaca99d38b3430a75a57b80ed035ffe53819067289b03e2')
 
 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-nibbles.install
===================================================================
--- gnome-nibbles.install	2014-03-30 00:26:58 UTC (rev 209197)
+++ gnome-nibbles.install	2014-03-30 00:29:45 UTC (rev 209198)
@@ -1,28 +1,7 @@
-_scores=(
-	gnome-nibbles.1.0.scores
-	gnome-nibbles.2.0.scores
-	gnome-nibbles.3.0.scores
-	gnome-nibbles.4.0.scores
-	gnome-nibbles.1.1.scores
-	gnome-nibbles.2.1.scores
-	gnome-nibbles.3.1.scores
-	gnome-nibbles.4.1.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() {
@@ -30,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