summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 16 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 23817df0a74..54c67c83476 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: carstene1ns <archi@carsten-teibes.de>
pkgname=reicast
-pkgver=r8.1
+pkgver=r19.07.4
pkgrel=1
pkgdesc='A Sega Dreamcast emulator'
arch=(x86_64)
@@ -11,17 +11,29 @@ license=(GPL2)
depends=(
alsa-lib
libgl
+ libudev.so
+ python
)
makedepends=(git)
-source=(git+https://github.com/reicast/reicast-emulator.git#tag=${pkgver})
+source=(git+https://github.com/reicast/reicast-emulator.git#tag=29e1c8eaaa2686f2be54a59c84bf8c54bdf527d2)
sha256sums=(SKIP)
+pkgver() {
+ cd reicast-emulator
+
+ git describe --tags
+}
+
+prepare() {
+ sed "s/CFLAGS :=/CFLAGS := ${CFLAGS}/; s/LDFLAGS :=/LDFLAGS := ${LDFLAGS}/" -i reicast-emulator/reicast/linux/Makefile
+}
+
build () {
- make -C reicast-emulator/shell/linux
+ make PREFIX=/usr -C reicast-emulator/reicast/linux
}
package () {
- install -Dm 755 reicast-emulator/shell/linux/reicast.elf "${pkgdir}"/usr/bin/reicast
+ make DESTDIR="${pkgdir}" PREFIX=/usr -C reicast-emulator/reicast/linux install
}
# vim: ts=2 sw=2 et: