-
-
Save sp1187/945d6fc28336b520625b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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