[add] openbor-git

This commit is contained in:
Carsten Teibes 2014-07-15 05:20:28 +02:00
commit 17a760ac1b
5 changed files with 111 additions and 0 deletions

28
.SRCINFO Normal file
View file

@ -0,0 +1,28 @@
pkgbase = openbor-git
pkgdesc = An open source, moddable fighting game engine (aka Beats of Rage), rofl0r's optimized fork
pkgver = r473.afa9362
pkgrel = 1
url = https://github.com/rofl0r/openbor
install = openbor.install
arch = i686
arch = x86_64
license = BSD
makedepends = git
makedepends = yasm
makedepends = imagemagick
makedepends = glu
depends = bash
depends = sdl_gfx
depends = libvorbis
depends = libpng
optdepends = libgl: OpenGL video mode
conflicts = openbor-svn
source = openbor::git+https://github.com/rofl0r/openbor.git
source = openbor.desktop
source = openbor.sh
sha256sums = SKIP
sha256sums = 92c2c8fa5727ddf76421bdb54589d898679b12f4201931f2861b7fa1b613097b
sha256sums = fc584ea761ba1307e4568c2ffb78731b848d27ed231bdc2149ece96304a55d81
pkgname = openbor-git

55
PKGBUILD Normal file
View file

@ -0,0 +1,55 @@
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
pkgname=openbor-git
pkgver=r473.afa9362
pkgrel=1
pkgdesc="An open source, moddable fighting game engine (aka Beats of Rage), rofl0r's optimized fork"
arch=('i686' 'x86_64')
url="https://github.com/rofl0r/openbor"
license=('BSD')
depends=('bash' 'sdl_gfx' 'libvorbis' 'libpng')
makedepends=('git' 'yasm' 'imagemagick' 'glu')
optdepends=('libgl: OpenGL video mode')
conflicts=('openbor-svn')
install=openbor.install
source=(openbor::'git+https://github.com/rofl0r/openbor.git'
'openbor.desktop'
'openbor.sh')
sha256sums=('SKIP'
'92c2c8fa5727ddf76421bdb54589d898679b12f4201931f2861b7fa1b613097b'
'fc584ea761ba1307e4568c2ffb78731b848d27ed231bdc2149ece96304a55d81')
pkgver() {
cd openbor
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
# convert icon
convert -resize 48x48 openbor/resources/OpenBOR_Icon_128x128.png openbor.png
}
build() {
cd openbor
make
# build tools
cd tools/borpak
./build-linux.sh
}
package() {
cd openbor
# launcher + binaries
install -Dm755 ../openbor.sh "$pkgdir"/usr/bin/openbor
install -Dm755 OpenBOR "$pkgdir"/usr/bin/OpenBOR.real
install -Dm755 tools/borpak/borpak "$pkgdir"/usr/bin/borpak
# 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
}

8
openbor.desktop Normal file
View file

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=OpenBOR
Comment=Open Beats of Rage
Icon=openbor
Exec=openbor
Terminal=false
Categories=Game;

13
openbor.install Normal file
View file

@ -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."
}

7
openbor.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/sh
# simple launcher by carstene1ns, 2014
mkdir -p "$HOME"/.OpenBOR
cd "$HOME"/.OpenBOR && exec /usr/bin/OpenBOR.real