summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 403c9c6f95acf40565ec0df12a99061db684cad5 (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
# Maintainer: ibrokemypie <ibrokemypie@bastardi.net>
pkgname=mupen64plus-rsp-cxd4-git
pkgver=2.5.9.r2.g1836a43
pkgrel=1
pkgdesc="Exemplary MSP communications simulator using a normalized VU."
arch=('i686' 'x86_64')
url="https://github.com/mupen64plus/mupen64plus-rsp-cxd4"
license=('custom:CC0')
depends=(glibc)
provides=(mupen64plus-rsp-cxd4)
conflicts=(mupen64plus-rsp-cxd4)
makedepends=(git)
source=("git+https://github.com/mupen64plus/mupen64plus-rsp-cxd4")
sha256sums=('SKIP')
_name=mupen64plus-rsp-cxd4

pkgver() {
  cd "$_name"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "$_name/projects/unix"
  make all SSE=SSE3 PIC=1
}
package() {
  cd "$_name/projects/unix"
  make install DESTDIR="$pkgdir/" SSE=SSE3 PIC=1 PREFIX=/usr
  install -Dm644 ../../COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}