Skip to content

Instantly share code, notes, and snippets.

@sp1187
Last active January 25, 2016 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sp1187/945d6fc28336b520625b to your computer and use it in GitHub Desktop.
Save sp1187/945d6fc28336b520625b to your computer and use it in GitHub Desktop.
pkgname=cen64-git
pkgver=r599.2ff54c5
pkgrel=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://git.cen64.com/cen64.git#branch=angrylion-rdp")
sha256sums=('SKIP')
pkgver() {
cd cen64
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
}
build() {
_arch_support="SSE2" #select between "SSE2", "SSSE3", "SSE4.1", "AVX"
cd build
cmake ../cen64 \
-DCMAKE_BUILD_TYPE=Release \
-DCEN64_ARCH_SUPPORT=${_arch_support} \
-DVR4300_BUSY_WAIT_DETECTION=ON
make
}
package() {
cd build
install -Dm755 cen64 "$pkgdir/usr/bin/cen64"
install -Dm644 ../cen64/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment