summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rawlinson2021-03-02 06:09:56 +0000
committerGeorge Rawlinson2021-03-02 06:09:56 +0000
commit9824a972044ed66a12abd5e3446f3e3fd2ce0106 (patch)
treec2f823c9f1743ed53bb807766aaddcd3fe241682
parent84518e28b9449e934fa0cfb19d04233bd0cba6b8 (diff)
downloadaur-9824a972044ed66a12abd5e3446f3e3fd2ce0106.tar.gz
upgpkg: bastet 0.43.2-4
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD19
-rw-r--r--bastet.install3
-rw-r--r--sysusers.conf1
-rw-r--r--tmpfiles.conf3
5 files changed, 25 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index df3b7ce4594c..fef14a9086f8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,24 @@
pkgbase = bastet
pkgdesc = Tetris(r) clone with 'bastard' block-choosing AI
pkgver = 0.43.2
- pkgrel = 3
+ pkgrel = 4
url = http://fph.altervista.org/prog/bastet.html
+ install = bastet.install
arch = i686
arch = x86_64
license = GPL3
makedepends = boost
depends = boost-libs
+ depends = ncurses
backup = var/games/bastet.scores2
source = bastet-0.43.2.tar.gz::https://github.com/fph/bastet/archive/0.43.2.tar.gz
source = fix_build_new_boost.patch
+ source = tmpfiles.conf
+ source = sysusers.conf
sha512sums = e81ca8bf674b537b539b7f6b35b1233a714f03750ce1b3947f84e70ca5f98ed4583902e7b4800c5bdde66ee95a4ef8ed0f5854675c2d149cd26d2498dc187a41
sha512sums = c6b65f3fd44eef43126b051990c2e0075f970c451f1d944d8a48f6f530bf792e875ac485dd3048d72433b636adc85bcb36f798d9b001021a2c3a4e39894f972e
+ sha512sums = 8aa5d06313a5bc072449cf5b04298d98086403649aa84e335fa33775c71afc798f0f5ca2fa6b2c4644273b4750022584b8944b86d86c8c2fa820df6d666c4b38
+ sha512sums = d1780270f4548cb1b22f7174fb1fe7a6cbabb37129264c14a003841a957f92f3a4b1a49068feae3c5592d1d8a8999f4ee0e2fbedf57b7f3b12b542853c7f428b
pkgname = bastet
diff --git a/PKGBUILD b/PKGBUILD
index 540f68e275b6..d088b06a24cd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,18 +4,23 @@
pkgname=bastet
pkgver=0.43.2
-pkgrel=3
+pkgrel=4
pkgdesc="Tetris(r) clone with 'bastard' block-choosing AI"
url="http://fph.altervista.org/prog/bastet.html"
license=('GPL3')
arch=('i686' 'x86_64')
-depends=('boost-libs')
+depends=('boost-libs' 'ncurses')
makedepends=('boost')
backup=('var/games/bastet.scores2')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/fph/bastet/archive/${pkgver}.tar.gz"
- "fix_build_new_boost.patch")
+ "fix_build_new_boost.patch"
+ "tmpfiles.conf"
+ "sysusers.conf")
+install=$pkgname.install
sha512sums=('e81ca8bf674b537b539b7f6b35b1233a714f03750ce1b3947f84e70ca5f98ed4583902e7b4800c5bdde66ee95a4ef8ed0f5854675c2d149cd26d2498dc187a41'
- 'c6b65f3fd44eef43126b051990c2e0075f970c451f1d944d8a48f6f530bf792e875ac485dd3048d72433b636adc85bcb36f798d9b001021a2c3a4e39894f972e')
+ 'c6b65f3fd44eef43126b051990c2e0075f970c451f1d944d8a48f6f530bf792e875ac485dd3048d72433b636adc85bcb36f798d9b001021a2c3a4e39894f972e'
+ '8aa5d06313a5bc072449cf5b04298d98086403649aa84e335fa33775c71afc798f0f5ca2fa6b2c4644273b4750022584b8944b86d86c8c2fa820df6d666c4b38'
+ 'd1780270f4548cb1b22f7174fb1fe7a6cbabb37129264c14a003841a957f92f3a4b1a49068feae3c5592d1d8a8999f4ee0e2fbedf57b7f3b12b542853c7f428b')
prepare() {
cd "${pkgname}-${pkgver}"
@@ -42,8 +47,6 @@ package() {
# prepare the (optional) global highscore file
# (users need to be in 'games' group, obviously)
- install -d -m 0775 -g games "${pkgdir}"/var/games
- touch "${pkgdir}"/var/games/bastet.scores2
- chmod 0664 "${pkgdir}"/var/games/bastet.scores2
- chown root:games "${pkgdir}"/var/games/bastet.scores2
+ install -Dm644 "$srcdir/sysusers.conf" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+ install -Dm644 "$srcdir/tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
}
diff --git a/bastet.install b/bastet.install
new file mode 100644
index 000000000000..87c629d47b5d
--- /dev/null
+++ b/bastet.install
@@ -0,0 +1,3 @@
+post_install() {
+ echo "Users who wish to contribute to the global highscore must be members of the 'games' group!"
+}
diff --git a/sysusers.conf b/sysusers.conf
new file mode 100644
index 000000000000..135306ea1e5d
--- /dev/null
+++ b/sysusers.conf
@@ -0,0 +1 @@
+g games
diff --git a/tmpfiles.conf b/tmpfiles.conf
new file mode 100644
index 000000000000..3cf71b84d6e2
--- /dev/null
+++ b/tmpfiles.conf
@@ -0,0 +1,3 @@
+z /usr/bin/bastet - - games
+d /var/games 0775 root games
+f /var/games/bastet.scores2 0664 root games