summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD47
2 files changed, 23 insertions, 42 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7b8b9c66136..6d6bda868df 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,26 +1,22 @@
pkgbase = raceintospace-git
pkgdesc = The computer version of the Liftoff! board game by Fritz Bronner
- pkgver = r455.e0d423d
+ pkgver = r1328.58fd94b
pkgrel = 1
- url = http://www.raceintospace.org/
- install = raceintospace-git.install
- arch = i686
- arch = x86_64
+ url = https://www.raceintospace.org/
+ arch = any
license = GPL2
makedepends = git
makedepends = cmake
- makedepends = boost
- makedepends = protobuf
- makedepends = clang
depends = sdl
depends = libvorbis
depends = libtheora
+ depends = boost
+ depends = libogg
depends = libpng
depends = jsoncpp
- provides = raceintospace
+ depends = zlib
conflicts = raceintospace
- source = raceintospace-git::git+https://github.com/raceintospace/raceintospace
+ source = git+https://github.com/raceintospace/raceintospace.git
md5sums = SKIP
pkgname = raceintospace-git
-
diff --git a/PKGBUILD b/PKGBUILD
index e20135d4948..d4e1ea6691a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,31 @@
-# Maintainer: manolollr <manolollr at riseup dot net>
+# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
-pkgname='raceintospace-git'
-pkgver=r455.e0d423d
+_pkgname=raceintospace
+pkgname=${_pkgname}-git
+pkgver=r1328.58fd94b
pkgrel=1
pkgdesc='The computer version of the Liftoff! board game by Fritz Bronner'
-arch=('i686' 'x86_64')
-url='http://www.raceintospace.org/'
+arch=('any')
+url='https://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")
+depends=('sdl' 'libvorbis' 'libtheora' 'boost' 'libogg' 'libpng' 'jsoncpp' 'zlib')
+makedepends=('git' 'cmake')
+conflicts=(${_pkgname})
+source=("git+https://github.com/${_pkgname}/${_pkgname}.git")
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'
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd $pkgname
- mkdir raceintospace-build; cd raceintospace-build
- export CXX=clang++ ; export CC=clang
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
- make
+ cd ${srcdir}/${_pkgname}
+ cmake .
}
package()
{
- cd $pkgname/raceintospace-build
- make DESTDIR=$pkgdir install
+ cd ${srcdir}/${_pkgname}
+ make DESTDIR=${pkgdir} install
}