summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c19b008c95fdfc057be7a0bb45c6a5b7d9c6d39 (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
# Maintainer: Gustavo Alvarez Lopez <sl1pkn07@gmail.com>
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
# Contributor: Score_Under <seejay.11@gmail.com>

pkgname=xnp2-svn
pkgver=0.86.2842
pkgrel=1
pkgdesc="X Neko Project II, a PC-9801 emulator. (SVN Version)"
arch=('i686' 'x86_64')
url='http://www.nonakap.org/np2'
license=('BSD')
depends=('gtk2'
         'sdl2_mixer'
         'libxxf86vm'
         )
makedepends=('nasm')
conflicts=('xnp2')
provides=('xnp2')
source=("xnp2::svn+http://amethyst.yui.ne.jp/svn/pc98/np2/trunk/")
sha256sums=('SKIP')

pkgver() {
  cd xnp2
  _ver="$(cat np2ver.h | grep -m1 'NP2VER_CORE' | sed 's|NP2|NPTWO|g' | grep -o "[[:digit:]]*" | paste -sd'.')"
  echo "${_ver}.$(svnversion)"
}

prepare() {
  mkdir -p build

  cd xnp2/x11
  ./autogen.sh

  cd "${srcdir}/build"
  ../xnp2/x11/configure \
    --prefix=/usr \
    --enable-build-all \
    --enable-ia32

}

build() {
  make -C build
}

package() {
  make -C build DESTDIR="${pkgdir}/" install
}