summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorichiro2016-06-11 23:47:43 -0700
committerichiro2016-06-11 23:47:43 -0700
commit7602f44f58090014daa1287626ee866e97d24edb (patch)
tree10259735b18d93917676e8158615fbb01acdce50
downloadaur-7602f44f58090014daa1287626ee866e97d24edb.tar.gz
Initial commit for package
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD53
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..897f95c6b6a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = ohrrpgce
+ pkgdesc = A role playing game creation engine
+ pkgver = callipygous.r8062
+ pkgrel = 1
+ url = http://rpg.hamsterrepublic.com/ohrrpgce/Main_Page
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = subversion
+ makedepends = freebasic
+ makedepends = scons
+ makedepends = openeuphoria
+ makedepends = dos2unix
+ depends = sdl_mixer
+ depends = openeuphoria
+ depends = libxpm
+ depends = libxrandr
+ depends = ncurses
+ optdepends = timidity-freepats: midi music support
+ source = svn://gilgamesh.hamsterrepublic.com/ohrrpgce/rel/callipygous
+ md5sums = SKIP
+
+pkgname = ohrrpgce
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a23ae749581
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Matthias Lamers <aussieevil@hotmail.com>
+pkgname=ohrrpgce
+pkgver=callipygous.r8062
+pkgrel=1
+pkgdesc="A role playing game creation engine"
+arch=(i686 x86_64)
+license=(GPL)
+url="http://rpg.hamsterrepublic.com/ohrrpgce/Main_Page"
+depends=('sdl_mixer' 'openeuphoria' 'libxpm' 'libxrandr' 'ncurses')
+makedepends=('subversion' 'freebasic' 'scons' 'openeuphoria' 'dos2unix')
+optdepends=('timidity-freepats: midi music support')
+source=(svn://gilgamesh.hamsterrepublic.com/ohrrpgce/rel/callipygous)
+
+pkgver(){
+ cd "${srcdir}/callipygous"
+ local ver="$(svnversion)"
+ printf "%s.r%s" "callipygous" "${ver//[[:alpha:]]}"
+}
+
+prepare() {
+ cd "${srcdir}/callipygous"
+ sed 's|env python|env python2|' -i reloadbasic/reloadbasic.py
+ chmod +x reloadbasic/reloadbasic.py
+ dos2unix -o *.rbas
+ PATH=$PATH:/usr/share/openeuphoria/bin/
+ #patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
+}
+
+build() {
+ cd "${srcdir}/callipygous"
+ if [ "$CARCH" = "x86_64" ]; then
+ scons arch=64 game custom hspeak unlump relump debug=0 install destdir='../release'
+ else
+ scons game custom hspeak unlump relump debug=0 install destdir='../release'
+ fi
+ cd vikings
+ "${srcdir}/release/usr/share/games/ohrrpgce/relump" vikings.rpgdir vikings.rpg
+ rm -rf vikings.rpgdir
+ cd ..
+ mkdir "${srcdir}/release/usr/share/games/ohrrpgce/vikings"
+ cp -r vikings/* "${srcdir}/release/usr/share/games/ohrrpgce/vikings"
+ #scons arch=64 game custom hspeak unlump relump debug=0
+}
+
+package() {
+ pwd
+ cp -r ./release/* "$pkgdir/"
+ #cd "$pkgname-$pkgver"
+ #make DESTDIR="$pkgdir/" install
+ #cd "${srcdir}/callipygous"
+ #cp -prv "${srcdir}/callipygous/vikings/*" "${pkgdir}"
+}
+md5sums=('SKIP')