summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2014-03-01 02:29:27 +0100
committerCarsten Teibes2014-03-01 02:29:27 +0100
commit74286cb6e8e215da81e2c3f04155234379065c69 (patch)
tree3af34d90596ad04386129667dcf57624fd0f12b0
downloadaur-74286cb6e8e215da81e2c3f04155234379065c69.tar.gz
[add] cannonball 0.22
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD42
-rw-r--r--cannonball.install14
-rw-r--r--cannonball.sh13
4 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9429ad424b1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = cannonball
+ pkgdesc = Enhanced OutRun Engine
+ pkgver = 0.22
+ pkgrel = 1
+ url = http://reassembler.blogspot.de/
+ install = cannonball.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = cmake
+ makedepends = boost
+ depends = sdl
+ depends = bash
+ source = cannonball-0.22.tar.gz::https://github.com/djyt/cannonball/archive/v0.22.tar.gz
+ source = cannonball.sh
+ md5sums = 27b0a94bc9330ab529df8404f3b476fa
+ md5sums = 06ea516bc9a4454da988074465e25943
+
+pkgname = cannonball
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bc797b1005e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: carstene1ns <url/mail: arch carsten-teibes de>
+
+pkgname=cannonball
+pkgver=0.22
+pkgrel=1
+pkgdesc='Enhanced OutRun Engine'
+arch=('i686' 'x86_64')
+url="http://reassembler.blogspot.de/"
+license=('custom')
+depends=('sdl' 'bash')
+makedepends=('cmake' 'boost')
+install=$pkgname.install
+source=($pkgname-$pkgver.tar.gz::"https://github.com/djyt/cannonball/archive/v$pkgver.tar.gz"
+ "$pkgname.sh")
+md5sums=('27b0a94bc9330ab529df8404f3b476fa'
+ '06ea516bc9a4454da988074465e25943')
+
+prepare() {
+ cd $pkgname-$pkgver
+ rm -rf build
+ mkdir build
+}
+
+build() {
+ cd $pkgname-$pkgver/build
+
+ cmake ../cmake -DTARGET=debian
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ # launcher + binary
+ install -Dm755 ../$pkgname.sh "$pkgdir"/usr/bin/$pkgname
+ install -Dm755 build/$pkgname "$pkgdir"/usr/lib/$pkgname/$pkgname
+ # config
+ install -Dm644 build/config.xml "$pkgdir"/usr/share/$pkgname/config.xml
+ # doc + license
+ install -Dm644 roms/roms.txt "$pkgdir"/usr/share/doc/$pkgname/roms.txt
+ install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
diff --git a/cannonball.install b/cannonball.install
new file mode 100644
index 00000000000..10b115a8dab
--- /dev/null
+++ b/cannonball.install
@@ -0,0 +1,14 @@
+
+post_install() {
+ echo "You need the 'Out Run (Rev B)' Rom set data files. Put them under"
+ echo "'~/.cannonball/roms'. The launcher script will also place a config"
+ echo "file there, if not already existing."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ echo "You may remove leftover config and data files from '~/.cannonball'."
+}
diff --git a/cannonball.sh b/cannonball.sh
new file mode 100644
index 00000000000..1ecb35ad8c2
--- /dev/null
+++ b/cannonball.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+echo "Cannonball launcher"
+
+mkdir -p ~/.cannonball/roms
+
+# config
+if [ ! -f ~/.cannonball/config.xml ]; then
+ cp /usr/share/cannonball/config.xml ~/.cannonball
+fi
+
+# run the game
+cd ~/.cannonball && exec /usr/lib/cannonball/cannonball "$@"