summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGeorge Rawlinson2022-04-05 03:40:23 +0000
committerGeorge Rawlinson2022-04-05 03:40:23 +0000
commit61ce8083e68f9a82720fb4ae465b97ad32816370 (patch)
tree3cd5dcad355ea2b3171eeae0f863673e072d69d2 /PKGBUILD
parentc14ae3d700c69deb41813f8267c9dbc7ac936cb8 (diff)
downloadaur-bastet.tar.gz
upgpkg: bastet 0.43.2-6
* Switch source to git commit from github tarball. * Fix FTBFS due to -Werror=format-security.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD69
1 files changed, 45 insertions, 24 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b9889e0b477..6e7e262d436 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,46 +4,67 @@
pkgname=bastet
pkgver=0.43.2
-pkgrel=5
+pkgrel=6
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' 'ncurses')
-makedepends=('boost')
+makedepends=('git' '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"
- "tmpfiles.conf")
+_commit='5037e410fde6fafe8e6bc4cf17a12ad98e01c17e'
+source=(
+ "$pkgname::git+https://github.com/fph/bastet.git#commit=$_commit"
+ 'fix_build_new_boost.patch'
+ 'fix_format_security.patch::https://github.com/fph/bastet/pull/21.patch'
+ 'tmpfiles.conf'
+)
install=$pkgname.install
-sha512sums=('e81ca8bf674b537b539b7f6b35b1233a714f03750ce1b3947f84e70ca5f98ed4583902e7b4800c5bdde66ee95a4ef8ed0f5854675c2d149cd26d2498dc187a41'
+sha512sums=('SKIP'
'c6b65f3fd44eef43126b051990c2e0075f970c451f1d944d8a48f6f530bf792e875ac485dd3048d72433b636adc85bcb36f798d9b001021a2c3a4e39894f972e'
+ 'cbbcb59a56027d314fd8c4b74bf9b4c79b6f12d66ff10c5ed37d37d136e21b6c98486749c09f1b05f3894e69194b966d83923f45a64b415c1c3c9453800d5d7b'
'8aa5d06313a5bc072449cf5b04298d98086403649aa84e335fa33775c71afc798f0f5ca2fa6b2c4644273b4750022584b8944b86d86c8c2fa820df6d666c4b38')
+b2sums=('SKIP'
+ 'c127757675f133ec4131c159d41e08c5db166968e23b1462576a43002ee3e1c819d656e1be8ad2ad487472daf010bf7fbc722df578af24145c9c734ba9d671ac'
+ '7fc3e27b5aa8b633e5e5ce2849421a3c8d4bdee61d749c758817cc252e4f9967ab1b6030b7ad411ad3f685cf55b5d18a6f9a77e7a63d3f5d02e58d0c9633c0d1'
+ 'f7376e71ea3daf6110a6148887879bbcb3a4a8087b7b3dfd42a249a9e13a9002004ff0a6a6447fbfe2f8b6c3d5941e4c4eb47bb381915a295b77803a8a91ff4f')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags
+}
prepare() {
- cd "${pkgname}-${pkgver}"
- patch -p1 -i "${srcdir}"/fix_build_new_boost.patch
+ cd "$pkgname"
+
+ patch -p1 -i ../fix_build_new_boost.patch
+ patch -p1 -i ../fix_format_security.patch
}
build() {
- cd "${pkgname}-${pkgver}"
+ cd "$pkgname"
+
make
}
package() {
- cd "${pkgname}-${pkgver}"
-
- # populate files
- install -Dm755 bastet "${pkgdir}"/usr/bin/bastet
- install -Dm644 bastet.6 "${pkgdir}"/usr/share/man/man6/bastet.6
- install -Dm644 bastet.png "${pkgdir}"/usr/share/pixmaps/bastet.png
- install -Dm644 bastet.desktop "${pkgdir}"/usr/share/applications/bastet.desktop
- install -Dm644 bastet.appdata.xml "${pkgdir}"/usr/share/appdata/bastet.appdata.xml
- for F in AUTHORS INSTALL NEWS README; do
- install -Dm644 ${F} "${pkgdir}/usr/share/doc/${pkgname}/${F}"
- done
-
- # prepare the (optional) global highscore file
- # (users need to be in 'games' group, obviously)
- install -Dm644 "$srcdir/tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+ # let systemd-tmpfiles generate global highscore file
+ install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" bastet
+
+ # man
+ install -vDm644 -t "$pkgdir/usr/share/man/man6" bastet.6
+
+ # desktop files
+ install -vDm644 -t "$pkgdir/usr/share/pixmaps" bastet.png
+ install -vDm644 -t "$pkgdir/usr/share/applications" bastet.desktop
+ install -vDm644 -t "$pkgdir/usr/share/appdata" bastet.appdata.xml
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" AUTHORS INSTALL NEWS README
}