summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormaz-12015-10-09 21:06:32 +0800
committermaz-12015-10-09 21:06:32 +0800
commit0b0384695ce1143091a56594a4eb6549bd0002a0 (patch)
treeeb1b04ae4429af089ed579afa3111ccaca5ab24f
downloadaur-0b0384695ce1143091a56594a4eb6549bd0002a0.tar.gz
initial
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD46
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7bd5ea56ec9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = onscripter-gbk
+ pkgdesc = A game engine compatible to NScripter with GBK patch, which is used to create and perform visual novel games
+ pkgver = 10.b5b47dd
+ pkgrel = 1
+ url = https://github.com/natdon/ONScripter-CN
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = bzip2
+ depends = sdl_image
+ depends = sdl_mixer
+ depends = sdl_ttf
+ depends = lua51
+ source = git://github.com/natdon/ONScripter-CN.git
+ md5sums = SKIP
+
+pkgname = onscripter-gbk
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..37c23bc92f8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+pkgname=onscripter-gbk
+pkgver=10.b5b47dd
+pkgrel=1
+pkgdesc="A game engine compatible to NScripter with GBK patch, which is used to create and perform visual novel games"
+arch=('i686' 'x86_64')
+url="https://github.com/natdon/ONScripter-CN"
+license=('GPL')
+depends=('bzip2' 'sdl_image' 'sdl_mixer' 'sdl_ttf' 'lua51')
+source="git://github.com/natdon/ONScripter-CN.git"
+md5sums=('SKIP')
+_gitname="ONScripter-CN"
+_gitbranch="951935b05a"
+
+pkgver() {
+ cd "$_gitname"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$_gitname"
+ git checkout "$_gitbranch" .
+ cd jni
+ # cd onscripter*
+ cd app_onscripter-32bpp
+ target=$(ls | grep '^onscripter-' | grep -v 'tar.gz' | sort | tail -n1)
+ cd "$target"
+
+ echo "LIBS = `sdl-config --libs` `smpeg-config --libs` -lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm -logg -lvorbis -lvorbisfile
+LIBS += -llua5.1 -lfontconfig
+CFLAGS += -c -DLINUX -DUSE_OGG_VORBIS -DUSE_LUA -DUSE_FONTCONFIG
+CFLAGS += `sdl-config --cflags` `smpeg-config --cflags` -I/usr/include/lua5.1
+OBJSUFFIX = .o
+#EXT_OBJS = LUAHandler.o
+CC = g++
+LD = g++ -o
+TARGET = onscripter
+include Makefile.onscripter" > Makefile
+
+ make
+ mv onscripter "$srcdir/$_gitname/"
+}
+
+package() {
+ cd "$_gitname"
+ install -Dm755 onscripter $pkgdir/usr/bin/onscripter-gbk
+}