[arch-commits] Commit in gweled/repos (6 files)
Eric Bélanger
eric at archlinux.org
Wed Nov 7 00:49:49 UTC 2012
Date: Tuesday, November 6, 2012 @ 19:49:48
Author: eric
Revision: 170393
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
gweled/repos/staging-i686/
gweled/repos/staging-i686/PKGBUILD
(from rev 170392, gweled/trunk/PKGBUILD)
gweled/repos/staging-i686/gweled.install
(from rev 170392, gweled/trunk/gweled.install)
gweled/repos/staging-x86_64/
gweled/repos/staging-x86_64/PKGBUILD
(from rev 170392, gweled/trunk/PKGBUILD)
gweled/repos/staging-x86_64/gweled.install
(from rev 170392, gweled/trunk/gweled.install)
-------------------------------+
staging-i686/PKGBUILD | 30 ++++++++++++++++++++++++++++++
staging-i686/gweled.install | 24 ++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 30 ++++++++++++++++++++++++++++++
staging-x86_64/gweled.install | 24 ++++++++++++++++++++++++
4 files changed, 108 insertions(+)
Copied: gweled/repos/staging-i686/PKGBUILD (from rev 170392, gweled/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2012-11-07 00:49:48 UTC (rev 170393)
@@ -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/staging-i686/gweled.install (from rev 170392, gweled/trunk/gweled.install)
===================================================================
--- staging-i686/gweled.install (rev 0)
+++ staging-i686/gweled.install 2012-11-07 00:49:48 UTC (rev 170393)
@@ -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/staging-x86_64/PKGBUILD (from rev 170392, gweled/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2012-11-07 00:49:48 UTC (rev 170393)
@@ -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/staging-x86_64/gweled.install (from rev 170392, gweled/trunk/gweled.install)
===================================================================
--- staging-x86_64/gweled.install (rev 0)
+++ staging-x86_64/gweled.install 2012-11-07 00:49:48 UTC (rev 170393)
@@ -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