summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rawlinson2018-07-29 19:44:08 +1200
committerGeorge Rawlinson2018-07-29 19:44:08 +1200
commit84518e28b9449e934fa0cfb19d04233bd0cba6b8 (patch)
treefe495744878c7195287f48ea05098e2e643a906f
parent1b06179a70e58b0752ac93df959afc61336c65f2 (diff)
downloadaur-bastet.tar.gz
build: general clean up
-rw-r--r--.SRCINFO7
-rw-r--r--.gitignore13
-rw-r--r--PKGBUILD31
3 files changed, 33 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2ac4a63cfa1..df3b7ce4594 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,18 @@
pkgbase = bastet
pkgdesc = Tetris(r) clone with 'bastard' block-choosing AI
pkgver = 0.43.2
- pkgrel = 2
+ pkgrel = 3
url = http://fph.altervista.org/prog/bastet.html
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
- md5sums = aee009b77b8cf9516d686bd24673800e
- md5sums = 8009e922bd24dd89b896a95ac7004a8a
+ sha512sums = e81ca8bf674b537b539b7f6b35b1233a714f03750ce1b3947f84e70ca5f98ed4583902e7b4800c5bdde66ee95a4ef8ed0f5854675c2d149cd26d2498dc187a41
+ sha512sums = c6b65f3fd44eef43126b051990c2e0075f970c451f1d944d8a48f6f530bf792e875ac485dd3048d72433b636adc85bcb36f798d9b001021a2c3a4e39894f972e
pkgname = bastet
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..bb731aae616
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+# Directories
+pkg/
+src/
+
+# Archives
+*.tar
+*.tar.*
+*.zip
+*.tgz
+
+# Logs
+*.log
+*.log.*
diff --git a/PKGBUILD b/PKGBUILD
index e4fe093fb64..540f68e275b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,43 @@
-# Maintainer: Jesse Harjunpää <harjuje1@gmail.com>
+# Maintainer: George Rawlinson <george@rawlinson.net.nz>
+# Contributor: Jesse Harjunpää <harjuje1@gmail.com>
# Contributor: Jens Adam <jra@byte.cx>
pkgname=bastet
pkgver=0.43.2
-pkgrel=2
+pkgrel=3
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')
+depends=('boost-libs')
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")
-md5sums=('aee009b77b8cf9516d686bd24673800e' '8009e922bd24dd89b896a95ac7004a8a')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/fph/bastet/archive/${pkgver}.tar.gz"
+ "fix_build_new_boost.patch")
+sha512sums=('e81ca8bf674b537b539b7f6b35b1233a714f03750ce1b3947f84e70ca5f98ed4583902e7b4800c5bdde66ee95a4ef8ed0f5854675c2d149cd26d2498dc187a41'
+ 'c6b65f3fd44eef43126b051990c2e0075f970c451f1d944d8a48f6f530bf792e875ac485dd3048d72433b636adc85bcb36f798d9b001021a2c3a4e39894f972e')
prepare() {
- cd "${srcdir}"/${pkgname}-${pkgver}
+ cd "${pkgname}-${pkgver}"
patch -p1 -i "${srcdir}"/fix_build_new_boost.patch
}
build() {
- cd "${srcdir}"/${pkgname}-${pkgver}
+ cd "${pkgname}-${pkgver}"
make
}
package() {
- cd "${srcdir}"/${pkgname}-${pkgver}
+ cd "${pkgname}-${pkgver}"
# populate files
- install -D bastet "${pkgdir}"/usr/bin/bastet
- install -D -m 0644 bastet.6 "${pkgdir}"/usr/share/man/man6/bastet.6
- install -D -m 0644 bastet.png "${pkgdir}"/usr/share/pixmaps/bastet.png
- install -D -m 0644 bastet.desktop "${pkgdir}"/usr/share/applications/bastet.desktop
- install -D -m 0644 bastet.appdata.xml "${pkgdir}"/usr/share/appdata/bastet.appdata.xml
+ 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 -D -m 0644 ${F} "${pkgdir}"/usr/share/doc/bastet/${F}
+ install -Dm644 ${F} "${pkgdir}/usr/share/doc/${pkgname}/${F}"
done
# prepare the (optional) global highscore file