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

pkgname=xnp2
pkgver=0.86
pkgrel=4
pkgdesc="X Neko Project II, a PC-9801 emulator"
arch=('x86_64')
url='http://nonakap.org/np2'
license=('BSD')
depends=(
  'gtk2'
  'sdl2_mixer'
  'libsm'
  'libx11'
  'libxxf86vm'
  'libxext'
)
makedepends=(
  'nasm'
)
source=(
  "https://nonakap.org/np2/release/xnp2-${pkgver}.tar.bz2"
  'patch.patch'
  )
sha256sums=(
  'e0b8c93f54682a4b3373907fd9ffe78094f95f7430dffc5038eccbcc4c3f78fd'
  '77b52b2832a9fc3ef8e71ccf85e5e04580247e80e4d973f46f71adc409df99c6'
)
options=('debug')

prepare() {
  mkdir -p build

  patch -d "xnp2-${pkgver}" -p1 -i "${srcdir}/patch.patch"
}

build() {
  CFLAGS+=" -Wno-incompatible-pointer-types -Wno-implicit-function-declaration"

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

  make
}

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