[arch-commits] Commit in gweled/repos (3 files)
Antonio Rojas
arojas at archlinux.org
Sat Sep 29 09:06:09 UTC 2018
Date: Saturday, September 29, 2018 @ 09:06:09
Author: arojas
Revision: 387699
archrelease: copy trunk to community-x86_64
Added:
gweled/repos/community-x86_64/
gweled/repos/community-x86_64/PKGBUILD
(from rev 387698, gweled/trunk/PKGBUILD)
gweled/repos/community-x86_64/gweled.install
(from rev 387698, gweled/trunk/gweled.install)
----------------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
gweled.install | 19 +++++++++++++++++++
2 files changed, 48 insertions(+)
Copied: gweled/repos/community-x86_64/PKGBUILD (from rev 387698, gweled/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2018-09-29 09:06:09 UTC (rev 387699)
@@ -0,0 +1,29 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=gweled
+pkgver=0.9.1
+pkgrel=4
+pkgdesc="A puzzle game similar to Bejeweled (aka Diamond Mine)"
+arch=('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 ${pkgname}-${pkgver}
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --with-scores-user=root --with-scores-group=games
+ make
+}
+
+package() {
+ cd ${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/community-x86_64/gweled.install (from rev 387698, gweled/trunk/gweled.install)
===================================================================
--- community-x86_64/gweled.install (rev 0)
+++ community-x86_64/gweled.install 2018-09-29 09:06:09 UTC (rev 387699)
@@ -0,0 +1,19 @@
+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
+}
+
+post_upgrade() {
+ post_install $1
+}
More information about the arch-commits
mailing list