summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD47
2 files changed, 20 insertions, 37 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 96a72c710cb..e65bd4402a6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = libretro-bsnes-mercury-git
pkgdesc = Super Nintendo Entertainment System cores with various performance improvements
- pkgver = 209
+ pkgver = 314.4e221df
pkgrel = 1
url = https://github.com/libretro/bsnes-mercury
arch = i686
@@ -10,14 +10,8 @@ pkgbase = libretro-bsnes-mercury-git
makedepends = git
depends = gcc-libs
depends = glibc
- source = bsnes-mercury::git+https://github.com/libretro/bsnes-mercury
- source = https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/bsnes_mercury_accuracy_libretro.info
- source = https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/bsnes_mercury_balanced_libretro.info
- source = https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/bsnes_mercury_performance_libretro.info
+ source = git+https://github.com/libretro/bsnes-mercury
sha256sums = SKIP
- sha256sums = 9b9b7ab87e79fb9a6c5728bdbe63b9430c1e79af02600cf44fd2cc041e635d72
- sha256sums = dc5fb75a930e8486771343932761149b96cfdb14e44032c2b5218ecc27595d4f
- sha256sums = 66a883d21a05f638ee7c345ff58e6eeb39305f7e6959081964786dfac6f3867a
pkgname = libretro-bsnes-mercury-git
diff --git a/PKGBUILD b/PKGBUILD
index 4e6d948ebc4..47d82f25149 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,36 @@
-# $Id$
-# Maintainer: uberushaximus <uberushaximus@gmail.com>
+# Maintainer: Mike Polvere <mic.tjs@gmail.com>
+# Contributor: uberushaximus <uberushaximus@gmail.com>
pkgname=libretro-bsnes-mercury-git
-pkgver=209
+pkgver=314.4e221df
pkgrel=1
pkgdesc='Super Nintendo Entertainment System cores with various performance improvements'
arch=('i686' 'x86_64')
-url='https://github.com/libretro/bsnes-mercury'
+_libname=bsnes_mercury
+_gitname=bsnes-mercury
+url="https://github.com/libretro/${_gitname}"
license=('GPL3')
groups=('libretro')
depends=('gcc-libs' 'glibc')
makedepends=('git')
-source=('bsnes-mercury::git+https://github.com/libretro/bsnes-mercury'
- 'https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/bsnes_mercury_accuracy_libretro.info'
- 'https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/bsnes_mercury_balanced_libretro.info'
- 'https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/bsnes_mercury_performance_libretro.info')
-sha256sums=('SKIP'
- '9b9b7ab87e79fb9a6c5728bdbe63b9430c1e79af02600cf44fd2cc041e635d72'
- 'dc5fb75a930e8486771343932761149b96cfdb14e44032c2b5218ecc27595d4f'
- '66a883d21a05f638ee7c345ff58e6eeb39305f7e6959081964786dfac6f3867a')
+source=("git+https://github.com/libretro/${_gitname}")
+sha256sums=('SKIP')
pkgver() {
- cd bsnes-mercury
-
- git rev-list --count HEAD
+ cd "${_gitname}"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
- cd bsnes-mercury
-
- for p in accuracy balanced performance; do
- make profile=${p}
- done
+ cd "${_gitname}"
+ for i in accuracy balanced performance; do
+ make profile=${i}
+ done
}
package() {
- cd bsnes-mercury
-
- install -dm 755 "${pkgdir}"/usr/{lib/libretro,share/libretro/info}
- for p in accuracy balanced performance; do
- install -m 644 out/bsnes_mercury_${p}_libretro.so "${pkgdir}"/usr/lib/libretro/
- install -m 644 ../bsnes_mercury_${p}_libretro.info "${pkgdir}"/usr/share/libretro/info/
- done
+ install -Dm644 "${_gitname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+ for i in accuracy balanced performance; do
+ install -Dm644 "${_gitname}/out/${_libname}_${i}_libretro.so" "${pkgdir}/usr/lib/libretro/${_libname}_${i}_libretro.so"
+ done
}
-
-# vim: ts=2 sw=2 et: