summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71c84756b04bb43cf1ba8df9654d86e6111571b1 (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
# Maintainer: Marco Pompili [marcs (dot) pompili (at) gmail (dot) com]

pkgname=daphne-git
_pkgname=daphne
pkgver=134.3675284
pkgrel=1
pkgdesc="A command-line multiple arcade laserdisc emulator. GIT fork"
url="http://www.daphne-emu.com/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('glew' 'sdl_mixer' 'zlib' 'gcc-libs' 'libxmu')
makedepends=('git')
provides=('daphne')
conflicts=('daphne')
source=('git+http://github.com/DavidGriffith/daphne.git' 'daphne.sh' 'singe.sh')
sha256sums=('SKIP' 'SKIP' 'SKIP')

pkgver()
{
  cd ${srcdir}/${_pkgname}
  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build()
{
  cd ${srcdir}/${_pkgname}
  cd src/vldp2
  ./configure --disable-accel-detect
  make -f Makefile.linux_x64
  cd ..
  ln -s Makefile.vars.linux_x64 Makefile.vars
  make
  cd ..
}

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

  # Install everything in /usr/share
  install -Dm755 ${srcdir}/daphne.sh ${pkgdir}/usr/bin/daphne
  install -Dm755 ${srcdir}/singe.sh ${pkgdir}/usr/bin/singe

  install -Dm755 ${_pkgname}.bin ${pkgdir}/usr/share/${_pkgname}/${_pkgname}
  install -d ${pkgdir}/usr/share/${_pkgname}/{pics,pics/obsolete,roms/cputest,sound}

  install -m644 pics/*.* ${pkgdir}/usr/share/${_pkgname}/pics/
  install -m644 pics/obsolete/*.* ${pkgdir}/usr/share/${_pkgname}/pics/obsolete/

  install -m644 roms/cputest/* ${pkgdir}/usr/share/${_pkgname}/roms/cputest/
  install -m644 sound/* ${pkgdir}/usr/share/${_pkgname}/sound/
}