summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 771fb4162523dd26999b8955a49e0d66332a071e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: yjun <jerrysteve1101 at gmail dot com>

pkgname=onscripter-gbk-git
_gitname=${pkgname%g-git}
pkgver=3.382ec29
pkgrel=1
pkgdesc="A GBK version of ONScripter, a game scripting engine"
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
url="https://github.com/shouhuanxiaoji/ONScripter-GBK-Linux"
license=('GPL2')
depends=('bzip2'
         'sdl_image'
         'sdl_mixer'
         'sdl_ttf'
         'lua51'
         'fontconfig'
         'libjpeg-turbo'
         'libvorbis'
         'smpeg')
provides=("onscripter-gbk")
conflicts=("onscripter-gbk")
source=("${_gitname}::git+${url}"
        "onscripter-gbk-gcc-6.2.patch"
        "avifile-remove.patch"
        "target-optimizing.patch")
md5sums=('SKIP'
         'ffb513b2784747bea73591f48ee9737f'
         '33749eb33188e06f8731213acc7cd70e'
         '2b7556bac039f28b6d73f01a7df74956')

pkgver() {
  cd "$_gitname"

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare() {
  cd "$_gitname"

  patch -p1 < ${srcdir}/onscripter-gbk-gcc-6.2.patch
  patch -p1 < ${srcdir}/avifile-remove.patch
  patch -p1 < ${srcdir}/target-optimizing.patch
}

build() {
  cd "$_gitname"

  make -f Makefile.Linux
}

package() {
  install -Dm755 ${_gitname}/onscripter $pkgdir/usr/bin/onscripter-gbk
}

# vim: set sw=2 ts=2 et: