summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormanolollr2017-09-11 17:43:01 +0200
committermanolollr2017-09-11 17:44:56 +0200
commit532d9cd0bb350ecd6a7e3e78758a9267fc5b38de (patch)
treeceb6cd4424fac59011ead542690a00e8ea2fe7cb
downloadaur-532d9cd0bb350ecd6a7e3e78758a9267fc5b38de.tar.gz
Initial package upload
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD46
-rw-r--r--raceintospace-git.install7
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7b8b9c66136
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = raceintospace-git
+ pkgdesc = The computer version of the Liftoff! board game by Fritz Bronner
+ pkgver = r455.e0d423d
+ pkgrel = 1
+ url = http://www.raceintospace.org/
+ install = raceintospace-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ makedepends = boost
+ makedepends = protobuf
+ makedepends = clang
+ depends = sdl
+ depends = libvorbis
+ depends = libtheora
+ depends = libpng
+ depends = jsoncpp
+ provides = raceintospace
+ conflicts = raceintospace
+ source = raceintospace-git::git+https://github.com/raceintospace/raceintospace
+ md5sums = SKIP
+
+pkgname = raceintospace-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e20135d4948
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: manolollr <manolollr at riseup dot net>
+
+pkgname='raceintospace-git'
+pkgver=r455.e0d423d
+pkgrel=1
+pkgdesc='The computer version of the Liftoff! board game by Fritz Bronner'
+arch=('i686' 'x86_64')
+url='http://www.raceintospace.org/'
+license=('GPL2')
+depends=('sdl' 'libvorbis' 'libtheora' 'libpng' 'jsoncpp')
+makedepends=('git' 'cmake' 'boost' 'protobuf' 'clang')
+provides=('raceintospace')
+conflicts=('raceintospace')
+source=("$pkgname::git+https://github.com/raceintospace/raceintospace")
+md5sums=('SKIP')
+install=$pkgname.install
+
+pkgver() {
+ cd $pkgname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd $pkgname
+
+ # Delete jsoncpp route in some .h files
+ # The repository is prepared to compile using Debian package libjsoncpp-dev
+ # In Debian package route is /usr/include/jsoncpp/json/*
+ # But in Arch Linux package route is /usr/include/json/*
+
+ grep -rl jsoncpp src/game/* | xargs sed -i 's/jsoncpp\///g'
+}
+
+build() {
+ cd $pkgname
+ mkdir raceintospace-build; cd raceintospace-build
+ export CXX=clang++ ; export CC=clang
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
+ make
+}
+
+package()
+{
+ cd $pkgname/raceintospace-build
+ make DESTDIR=$pkgdir install
+}
diff --git a/raceintospace-git.install b/raceintospace-git.install
new file mode 100644
index 00000000000..198b33328f8
--- /dev/null
+++ b/raceintospace-git.install
@@ -0,0 +1,7 @@
+post_install() {
+ echo 'Game manual located at https://github.com/raceintospace/raceintospace/blob/master/doc/manual/manual.md'
+}
+
+post_upgrade() {
+ post_install $1
+}