[arch-commits] Commit in five-or-more/trunk (PKGBUILD five-or-more.install)

Jan Steffens heftig at nymeria.archlinux.org
Sun Mar 30 01:03:17 UTC 2014


    Date: Sunday, March 30, 2014 @ 03:03:17
  Author: heftig
Revision: 209203

3.12.0

Modified:
  five-or-more/trunk/PKGBUILD
  five-or-more/trunk/five-or-more.install

----------------------+
 PKGBUILD             |   10 +++-------
 five-or-more.install |   24 +-----------------------
 2 files changed, 4 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-30 00:34:44 UTC (rev 209202)
+++ PKGBUILD	2014-03-30 01:03:17 UTC (rev 209203)
@@ -3,7 +3,7 @@
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
 pkgname=five-or-more
-pkgver=3.10.2
+pkgver=3.12.0
 pkgrel=1
 pkgdesc="Remove colored balls from the board by forming lines"
 arch=('i686' 'x86_64')
@@ -17,13 +17,12 @@
 url="https://live.gnome.org/Five%20or%20more"
 groups=('gnome-extra')
 source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz)
-sha256sums=('e2e6834df8be22db1feb1ef41f4d3c4b2f41ab6b3bcbc7f4ba61b8b70bfd89a9')
+sha256sums=('99fa19ff8481ad4d30d85b1ea78bcbc207d4c0c0e51fec78b9d76a80a29fb920')
 
 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: five-or-more.install
===================================================================
--- five-or-more.install	2014-03-30 00:34:44 UTC (rev 209202)
+++ five-or-more.install	2014-03-30 01:03:17 UTC (rev 209203)
@@ -1,23 +1,7 @@
-_scores=(
-	glines.Small.scores
-	glines.Medium.scores
-	glines.Large.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() {
@@ -25,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