summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee8acf6954042a2560322b8ad12f00fb106111b4 (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
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=mupen64plus-rsp-parallel-highscore-git
pkgver=r122.738c95c
pkgrel=3
pkgdesc="ParaLLEl-RSP with mupen64plus-highscore patches"
arch=('x86_64')
url="https://github.com/highscore-emu/parallel-rsp"
license=('LGPL-3.0-or-later OR MIT')
depends=('mupen64plus-git')
makedepends=(
  'cmake'
  'git'
)
provides=("${pkgname%-git}" 'mupen64plus-rsp-parallel')
conflicts=("${pkgname%-git}" 'mupen64plus-rsp-parallel')
source=('git+https://github.com/highscore-emu/parallel-rsp.git')
sha256sums=('SKIP')

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

build() {
  cmake -B build -S parallel-rsp \
    -DCMAKE_BUILD_TYPE='RelWithDebInfo' \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -Wno-dev
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build

  install -Dm644 parallel-rsp/LICENSE.MIT -t "$pkgdir/usr/share/licenses/$pkgname/"
}