summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e7c442a14152e86b2eca6fe614b6fa75e3c6f4d (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
57
58
59
# Maintainer: yjun <jerrysteve1101 at gmail dot com>

# fork from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=onscripter-jh

pkgname=onscripter-jh-git
_gitname=${pkgname%-git}
pkgdesc="onscripter fork with custom improvements."
pkgver=2.fa80e64
pkgrel=2    
_ons_version="20140817"
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
url="https://github.com/luhux/onscripter-jh"
# another fork, works as well
# url="https://github.com/LasmGratel/onscripter-jh"
license=('GPL2')
depends=('sdl_mixer'
         'sdl_ttf'
         'sdl_image'
         'libjpeg-turbo'
         'bzip2'
         'libvorbis'
         'lua51'
         'fontconfig'
         'smpeg')
makedepends=('git')
provides=('onscripter-jh')
conflicts=('onscripter-jh')
source=("git+${url}"
        "avifile-remove.patch"
        "target-optimizing.patch")
sha256sums=('SKIP'
            '11dab90831eaea86867675abef844f0bdd207545d157b49818b0557a441b8351'
            '4d624bcc1cc196d81c00bf4b7112228cc8c516bf61a80ce65144c4d0c43bd830')

pkgver() {
  cd ${srcdir}/${_gitname}

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

prepare() {
  cd ${srcdir}/${_gitname}

  patch -p1 < ${srcdir}/avifile-remove.patch
  patch -p1 < ${srcdir}/target-optimizing.patch
}

build() {
  cd ${srcdir}/${_gitname}

  make -f Makefile.Linux
}

package() {
  cd ${srcdir}/${_gitname}

  install -Dm 755 ${srcdir}/${_gitname}/onscripter ${pkgdir}/usr/bin/onscripter-jh
}
# vim: set sw=2 ts=2 et: