summaryrefslogtreecommitdiff
path: root/pcr/puzzlemoppet-git
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2019-03-31 06:00:14 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2019-03-31 06:21:55 -0400
commit5d881aeb26c3b3b4494787d7d726508207ec955e (patch)
tree63d6e90a1605e94d49dbe74230c65efaff9e2cb0 /pcr/puzzlemoppet-git
parent8e1a8ee9964180bad16ea7fba55646dc08280139 (diff)
downloadabslibre-5d881aeb26c3b3b4494787d7d726508207ec955e.tar.gz
abslibre-5d881aeb26c3b3b4494787d7d726508207ec955e.tar.bz2
abslibre-5d881aeb26c3b3b4494787d7d726508207ec955e.zip
[puzzlemoppet-git]: rebuild
Diffstat (limited to 'pcr/puzzlemoppet-git')
-rw-r--r--pcr/puzzlemoppet-git/PKGBUILD36
1 files changed, 23 insertions, 13 deletions
diff --git a/pcr/puzzlemoppet-git/PKGBUILD b/pcr/puzzlemoppet-git/PKGBUILD
index 6d2898f7c..45bbbacc8 100644
--- a/pcr/puzzlemoppet-git/PKGBUILD
+++ b/pcr/puzzlemoppet-git/PKGBUILD
@@ -4,30 +4,40 @@
pkgname=puzzlemoppet-git
pkgver=r64.d79b10e
-pkgrel=1
+pkgrel=2
pkgdesc="A challenging 3D puzzle game where you must guide the Moppet through the vast and eternal void of space by solving the various and beautiful puzzles thrown at you"
arch=('i686' 'x86_64')
-url="https://bitbucket.org/Knitter/puzzlemoppet/overview"
+url=https://bitbucket.org/Knitter/puzzlemoppet/overview
license=('WTFPL')
-depends=('irrlicht' 'ode' 'openal' 'libxrandr')
+
+_latest_version() { pacman -Si $1 | awk '$1=="Version" { sub (/-.*/, "" , $3) ; print $3 }' | sort -V | tail -n 1 ; }
+_runtime_couplings=( "ode=$(_latest_version 'ode')" )
+depends=(${_runtime_couplings[@]} 'openal' 'irrlicht' 'libxrandr')
makedepends=('make' 'cmake' 'git')
conflicts=('puzzle-moppet-bin')
+
source=(${pkgname}::git+https://bitbucket.org/Knitter/puzzlemoppet.git)
md5sums=('SKIP')
-pkgver() {
- cd "${srcdir}/${pkgname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+pkgver()
+{
+ cd "${srcdir}/${pkgname}"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-build() {
- cd "${srcdir}/${pkgname}/puzzlemoppet"
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_FOR_INSTALL=ON .
- make
+build()
+{
+ cd "${srcdir}/${pkgname}/puzzlemoppet"
+
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_FOR_INSTALL=ON .
+ make
}
-package() {
- cd "${srcdir}/${pkgname}/puzzlemoppet"
- make install DESTDIR=$pkgdir
+package()
+{
+ cd "${srcdir}/${pkgname}/puzzlemoppet"
+
+ make install DESTDIR=$pkgdir
}