summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ebafd953ef0c35c6b4f787ec4e9d2286172f5e79 (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
# Maintainer: That One Seong <thatoneseong@protonmail.com>

_pkgname=supermodel
pkgname=$_pkgname-sinden-git
pkgver=r78.6a377d0
pkgrel=1
pkgdesc='A Sega Model 3 Arcade Emulator, patched for multiple mice support and Sinden borders'
arch=('i686' 'x86_64')
url='http://www.supermodel3.com/'
license=('GPL3')
depends=('mesa' 'sdl' 'zlib' 'glu' 'sdl2_net')
makedepends=('git')
provides=('supermodel-git')
conflicts=('supermodel-git')
install=supermodel-sinden.install
source=("$_pkgname::git+https://github.com/DirtBagXon/model3emu-code-sinden.git")
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$_pkgname"
  make -f 'Makefiles/Makefile.UNIX'
}

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

  install -Dm755 "bin/supermodel" "$pkgdir/usr/bin/supermodel"

  install -Dm644 "Docs/LICENSE.txt" "$pkgdir/usr/share/licenses/supermodel/LICENSE"
  install -Dm644 "Docs/README.txt" "$pkgdir/usr/share/doc/supermodel/README"

  install -d "$pkgdir/usr/share/supermodel/Config"
  install -m644 Config/* "$pkgdir/usr/share/supermodel/Config/"
}