summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaxime Gauduin2015-08-27 12:17:26 +0200
committerMaxime Gauduin2015-08-27 12:17:26 +0200
commit9c45ec5a28fb49d2a18ec8417c1d47303e6e090e (patch)
treec276d058790ae828aa47eb3a53462dea5b92816e /PKGBUILD
downloadaur-9c45ec5a28fb49d2a18ec8417c1d47303e6e090e.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..536278712b7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+
+pkgname=libretro-nestopia-git
+pkgver=r586.4ee529f
+pkgrel=1
+pkgdesc='Nestopia libretro core'
+arch=('i686' 'x86_64')
+url='https://github.com/libretro/nestopia'
+license=('GPL2')
+groups=('libretro')
+depends=('gcc-libs' 'glibc')
+makedepends=('git')
+provides=('libretro-nestopia')
+conflicts=('libretro-nestopia')
+source=('libretro-nestopia::git+https://github.com/libretro/nestopia.git'
+ 'https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/nestopia_libretro.info')
+sha256sums=('SKIP'
+ 'eea21d5c2fb0fe95c2f84c8e957b18a7898699a3899e784f94feb87f68c847b1')
+
+pkgver() {
+ cd libretro-nestopia
+
+ echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd libretro-nestopia/libretro
+
+ make
+}
+
+package() {
+ cd libretro-nestopia/libretro
+
+ install -dm 755 "${pkgdir}"/usr/{lib/libretro,share/libretro/info}
+ install -m 644 nestopia_libretro.so "${pkgdir}"/usr/lib/libretro/
+ install -m 644 ../../nestopia_libretro.info "${pkgdir}"/usr/share/libretro/info/
+}
+
+# vim: ts=2 sw=2 et: