summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryjun2021-02-11 23:36:23 +0800
committeryjun2021-02-11 23:36:23 +0800
commiteab72448cd48c75776ff69bd35b2d405e4d5d879 (patch)
tree7fe23c5ad1b58565a0c3d484e21a3768484385e2
parent64aa72ace8fe17b548ebb769d826bc0ab25a5389 (diff)
downloadaur-eab72448cd48c75776ff69bd35b2d405e4d5d879.tar.gz
fixed pkgver to correct commit
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD38
2 files changed, 28 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dc5efb96524..525663aaceb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,19 @@
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 = 2
+ pkgver = 8.951935b
+ pkgrel = 1
+ epoch = 1
url = https://github.com/natdon/ONScripter-CN
arch = i686
arch = x86_64
- license = GPL
+ license = GPL2
depends = bzip2
depends = sdl_image
depends = sdl_mixer
depends = sdl_ttf
depends = lua51
- source = git://github.com/natdon/ONScripter-CN.git
+ depends = fontconfig
+ source = onscripter-gbk::git://github.com/natdon/ONScripter-CN.git#commit=951935b05a
md5sums = SKIP
pkgname = onscripter-gbk
diff --git a/PKGBUILD b/PKGBUILD
index 04eaeb96dde..ca3dd83cec6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,29 +2,31 @@
# Contributor: maz-1 <ohmygod19993 at gmail dot com>
pkgname=onscripter-gbk
-pkgver=10.b5b47dd
-pkgrel=2
+_pkgname=${pkgname%-gbk}
+pkgver=8.951935b
+pkgrel=1
+epoch=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")
+license=('GPL2')
+depends=('bzip2'
+ 'sdl_image'
+ 'sdl_mixer'
+ 'sdl_ttf'
+ 'lua51'
+ 'fontconfig')
+source=("${pkgname}::git://github.com/natdon/ONScripter-CN.git#commit=951935b05a")
md5sums=('SKIP')
-_gitname="ONScripter-CN"
-_gitbranch="951935b05a"
pkgver() {
- cd "$_gitname"
+ cd "$pkgname"
+
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
+ cd "$pkgname"/jni/app_onscripter-32bpp
target=$(ls | grep '^onscripter-' | grep -v 'tar.gz' | sort | tail -n1)
cd "$target"
@@ -40,10 +42,14 @@ TARGET = onscripter
include Makefile.onscripter" > Makefile
make
- mv onscripter "$srcdir/$_gitname/"
+ mv ${_pkgname} "$srcdir/$pkgname/"
}
package() {
- cd "$_gitname"
- install -Dm755 onscripter $pkgdir/usr/bin/onscripter-gbk
+ cd "$pkgname"
+
+ install -Dm755 ${_pkgname} $pkgdir/usr/bin/${pkgname}
}
+
+# vim: set sw=2 ts=2 et:
+