blob: 219e357b133b21bd4ff63a0a519179f7fb5cf567 (
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
|
pkgname=cen64-git
pkgver=r764.62f0f9b
pkgrel=1
epoch=1
pkgdesc="Cycle-accurate Nintendo 64 emulator"
arch=('i686' 'x86_64')
url="http://www.cen64.com/"
license=('BSD')
depends=('mesa' 'openal')
makedepends=('cmake')
source=("git://github.com/tj90241/cen64.git")
sha256sums=('SKIP')
pkgver() {
cd cen64
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
}
build() {
# Change to whichever matches your CPU architecture
# Select between "SSE2", "SSSE3", "SSE4.1", "AVX"
_arch_support="SSSE3"
# Enable busy-wait-detection for better performance
_detect_wait_loops="ON"
cd build
cmake ../cen64 \
-DCMAKE_BUILD_TYPE=Release \
-DCEN64_ARCH_SUPPORT=${_arch_support} \
-DVR4300_BUSY_WAIT_DETECTION=${_detect_wait_loops}
make
}
package() {
cd build
install -Dm755 cen64 "$pkgdir/usr/bin/cen64"
install -Dm644 ../cen64/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|