diff options
author | Carsten Teibes | 2014-07-15 02:45:17 +0200 |
---|---|---|
committer | Carsten Teibes | 2014-07-15 02:45:17 +0200 |
commit | 706291c9adf0087962654494248384bd01b36f01 (patch) | |
tree | 84d2b040154c548458c31b719b859bc0e741697f | |
download | aur-706291c9adf0087962654494248384bd01b36f01.tar.gz |
[add] openbor-svn
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 73 | ||||
-rw-r--r-- | openbor.desktop | 8 | ||||
-rw-r--r-- | openbor.install | 13 | ||||
-rw-r--r-- | openbor.sh | 7 |
5 files changed, 128 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e82fd5689d45 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = openbor-svn + pkgdesc = An open source fighting video game and moddable game engine (aka Beats of Rage) + pkgver = 3.0.r4077 + pkgrel = 1 + url = http://www.chronocrash.com + install = openbor.install + arch = i686 + arch = x86_64 + license = BSD + makedepends = subversion + makedepends = yasm + makedepends = imagemagick + makedepends = glu + depends = bash + depends = sdl_gfx + depends = libvorbis + depends = libpng + optdepends = libgl: OpenGL video mode + source = openbor::svn+http://svn.code.sf.net/p/openbor/engine/engine + source = openbor.desktop + source = openbor.sh + sha256sums = SKIP + sha256sums = 92c2c8fa5727ddf76421bdb54589d898679b12f4201931f2861b7fa1b613097b + sha256sums = fc584ea761ba1307e4568c2ffb78731b848d27ed231bdc2149ece96304a55d81 + +pkgname = openbor-svn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..370d2d828745 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG +# Contributor: Gadget3000 <gadget3000 at msn dot com> +# Contributor: Giovanni Scafora <giovanni@archlinux.org> + +pkgname=openbor-svn +pkgver=3.0.r4077 +pkgrel=1 +pkgdesc="An open source fighting video game and moddable game engine (aka Beats of Rage)" +arch=('i686' 'x86_64') +url="http://www.chronocrash.com" +license=('BSD') +depends=('bash' 'sdl_gfx' 'libvorbis' 'libpng') +makedepends=('subversion' 'yasm' 'imagemagick' 'glu') +optdepends=('libgl: OpenGL video mode') +install=openbor.install +source=(openbor::'svn+http://svn.code.sf.net/p/openbor/engine/engine' + 'openbor.desktop' + 'openbor.sh') +sha256sums=('SKIP' + '92c2c8fa5727ddf76421bdb54589d898679b12f4201931f2861b7fa1b613097b' + 'fc584ea761ba1307e4568c2ffb78731b848d27ed231bdc2149ece96304a55d81') + +pkgver() { + cd openbor + + # get version from build script + local _major=$(grep ^VERSION_MAJOR= version.sh | sed 's/VERSION_MAJOR=//') + local _minor=$(grep ^VERSION_MINOR= version.sh | sed 's/VERSION_MINOR=//') + local _rev="$(svnversion)" + printf "%s.%s.r%s" "$_major" "$_minor" "${_rev//[[:alpha:]]}" +} + +prepare() { + cd openbor + + # work around broken build system + sed 's|$(LNXDEV)/$(PREFIX)||g;s|$(SDKPATH)|/usr|' -i Makefile + # disable abort on error + sed 's/-Werror//' -i Makefile + # disable RPATH + sed 's/-Wl,-rpath,$(LIBRARIES)//' -i Makefile + # fix a locale warning + sed 's|en_US.UTF-8|C|g' -i version.sh + # convert icon + convert -resize 48x48 resources/OpenBOR_Icon_128x128.png ../openbor.png +} + +build() { + cd openbor + + # work around broken build system + ./version.sh + if [ "$CARCH" = "x86_64" ]; then + make BUILD_LINUX=1 TARGET_ARCH=amd64 + else + make BUILD_LINUX=1 + fi +} + +package() { + cd openbor + + # launcher + binary + install -Dm755 ../openbor.sh "$pkgdir"/usr/bin/openbor + install -Dm755 OpenBOR "$pkgdir"/usr/bin/OpenBOR.real + # doc + install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README + # .desktop entry + install -Dm644 ../openbor.desktop "$pkgdir"/usr/share/applications/openbor.desktop + install -Dm644 ../openbor.png "$pkgdir"/usr/share/pixmaps/openbor.png + # license + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/openbor.desktop b/openbor.desktop new file mode 100644 index 000000000000..f590df927af7 --- /dev/null +++ b/openbor.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=OpenBOR +Comment=Open Beats of Rage +Icon=openbor +Exec=openbor +Terminal=false +Categories=Game; diff --git a/openbor.install b/openbor.install new file mode 100644 index 000000000000..e617e6ffc09d --- /dev/null +++ b/openbor.install @@ -0,0 +1,13 @@ + +post_install() { + echo "This package contains a launcher script that will setup OpenBOR to use the" + echo "folder ~/.OpenBOR for all data files. Put your PAK files and configs there." +} + +post_upgrade() { + post_install +} + +post_remove() { + echo "Remember to clean up your ~/.OpenBOR folder." +} diff --git a/openbor.sh b/openbor.sh new file mode 100644 index 000000000000..d99583cee6ec --- /dev/null +++ b/openbor.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# simple launcher by carstene1ns, 2014 + +mkdir -p "$HOME"/.OpenBOR + +cd "$HOME"/.OpenBOR && exec /usr/bin/OpenBOR.real |