[arch-commits] Commit in gweled/repos (8 files)
Jan Steffens
heftig at archlinux.org
Wed Nov 7 15:21:36 UTC 2012
Date: Wednesday, November 7, 2012 @ 10:21:35
Author: heftig
Revision: 170413
db-move: moved gweled from [staging] to [testing] (i686, x86_64)
Added:
gweled/repos/testing-i686/
gweled/repos/testing-i686/PKGBUILD
(from rev 170411, gweled/repos/staging-i686/PKGBUILD)
gweled/repos/testing-i686/gweled.install
(from rev 170411, gweled/repos/staging-i686/gweled.install)
gweled/repos/testing-x86_64/
gweled/repos/testing-x86_64/PKGBUILD
(from rev 170411, gweled/repos/staging-x86_64/PKGBUILD)
gweled/repos/testing-x86_64/gweled.install
(from rev 170411, gweled/repos/staging-x86_64/gweled.install)
Deleted:
gweled/repos/staging-i686/
gweled/repos/staging-x86_64/
-------------------------------+
testing-i686/PKGBUILD | 30 ++++++++++++++++++++++++++++++
testing-i686/gweled.install | 24 ++++++++++++++++++++++++
testing-x86_64/PKGBUILD | 30 ++++++++++++++++++++++++++++++
testing-x86_64/gweled.install | 24 ++++++++++++++++++++++++
4 files changed, 108 insertions(+)
Copied: gweled/repos/testing-i686/PKGBUILD (from rev 170411, gweled/repos/staging-i686/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2012-11-07 15:21:35 UTC (rev 170413)
@@ -0,0 +1,30 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=gweled
+pkgver=0.9.1
+pkgrel=2
+pkgdesc="A puzzle game similar to Bejeweled (aka Diamond Mine)"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="https://launchpad.net/gweled/"
+depends=('gtk2' 'librsvg' 'libmikmod' 'hicolor-icon-theme')
+makedepends=('intltool')
+install=gweled.install
+source=(http://launchpad.net/${pkgname}/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz)
+sha1sums=('ff4a59935c9e1eb4a202e723baabaab39f526714')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --with-scores-user=root --with-scores-group=games
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+# We generate these files on post-install to prevent score resets on upgrade
+ rm -rf "${pkgdir}/var"
+}
Copied: gweled/repos/testing-i686/gweled.install (from rev 170411, gweled/repos/staging-i686/gweled.install)
===================================================================
--- testing-i686/gweled.install (rev 0)
+++ testing-i686/gweled.install 2012-11-07 15:21:35 UTC (rev 170413)
@@ -0,0 +1,24 @@
+scores=(
+ 'gweled.Normal.scores'
+ 'gweled.Timed.scores'
+)
+
+post_install() {
+ 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
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
Copied: gweled/repos/testing-x86_64/PKGBUILD (from rev 170411, gweled/repos/staging-x86_64/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-11-07 15:21:35 UTC (rev 170413)
@@ -0,0 +1,30 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=gweled
+pkgver=0.9.1
+pkgrel=2
+pkgdesc="A puzzle game similar to Bejeweled (aka Diamond Mine)"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="https://launchpad.net/gweled/"
+depends=('gtk2' 'librsvg' 'libmikmod' 'hicolor-icon-theme')
+makedepends=('intltool')
+install=gweled.install
+source=(http://launchpad.net/${pkgname}/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz)
+sha1sums=('ff4a59935c9e1eb4a202e723baabaab39f526714')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --with-scores-user=root --with-scores-group=games
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+# We generate these files on post-install to prevent score resets on upgrade
+ rm -rf "${pkgdir}/var"
+}
Copied: gweled/repos/testing-x86_64/gweled.install (from rev 170411, gweled/repos/staging-x86_64/gweled.install)
===================================================================
--- testing-x86_64/gweled.install (rev 0)
+++ testing-x86_64/gweled.install 2012-11-07 15:21:35 UTC (rev 170413)
@@ -0,0 +1,24 @@
+scores=(
+ 'gweled.Normal.scores'
+ 'gweled.Timed.scores'
+)
+
+post_install() {
+ 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
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
More information about the arch-commits
mailing list