summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormanolollr2017-09-11 17:43:01 +0200
committermanolollr2017-09-11 17:44:56 +0200
commit532d9cd0bb350ecd6a7e3e78758a9267fc5b38de (patch)
treeceb6cd4424fac59011ead542690a00e8ea2fe7cb /PKGBUILD
downloadaur-532d9cd0bb350ecd6a7e3e78758a9267fc5b38de.tar.gz
Initial package upload
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD46
1 files changed, 46 insertions, 0 deletions
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
+}