diff options
author | Alexander F. Rødseth | 2019-03-27 10:18:16 +0100 |
---|---|---|
committer | Alexander F. Rødseth | 2019-03-27 10:18:16 +0100 |
commit | 7690bbec941a165f1d6df8bd651733d22a74ebaf (patch) | |
tree | b307e7d7f3aa2c95a8c8055bd42e8b6e01b33b8f | |
download | aur-7690bbec941a165f1d6df8bd651733d22a74ebaf.tar.gz |
Move from [community] to AUR in connection with the spring cleaning
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | gweled.install | 19 |
3 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a61009fcca5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Wed Mar 27 09:15:59 UTC 2019 +pkgbase = gweled + pkgdesc = A puzzle game similar to Bejeweled (aka Diamond Mine) + pkgver = 0.9.1 + pkgrel = 5 + url = https://launchpad.net/gweled/ + install = gweled.install + arch = x86_64 + license = GPL + makedepends = intltool + depends = gtk2 + depends = librsvg + depends = libmikmod + depends = hicolor-icon-theme + source = http://launchpad.net/gweled/trunk/0.9.1/+download/gweled-0.9.1.tar.gz + source = gweled-librsvg-crash.patch::https://bazaar.launchpad.net/~dnax88/gweled/trunk/diff/92 + sha256sums = f6064989040949659f5a970cf3a9dd280615df7ad67c014ac37e1466ce91055d + sha256sums = 9944e8da49cdc987ea4c0d60cae345fa988178a3cac506bba3eb016c5eb79d77 + +pkgname = gweled + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..365d6008faf3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: +# Contributor: Eric Bélanger <eric@archlinux.org> + +pkgname=gweled +pkgver=0.9.1 +pkgrel=5 +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 + gweled-librsvg-crash.patch::https://bazaar.launchpad.net/~dnax88/gweled/trunk/diff/92) +sha256sums=('f6064989040949659f5a970cf3a9dd280615df7ad67c014ac37e1466ce91055d' + '9944e8da49cdc987ea4c0d60cae345fa988178a3cac506bba3eb016c5eb79d77') + +prepare() { + cd $pkgname-$pkgver + patch -p0 -i ../gweled-librsvg-crash.patch # Fix segfault at startup +} + +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" +} diff --git a/gweled.install b/gweled.install new file mode 100644 index 000000000000..9be6ea940abe --- /dev/null +++ b/gweled.install @@ -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 +} |