summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 10 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9b789c15ec4..2486b9d6671 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,32 @@
# Maintainer: Emerson Max de Medeiros Silva <emersonmx@gmail.com>
+_gitname=SameBoy
+
pkgname=libretro-sameboy-git
-pkgver=1040.da29506
-pkgrel=2
+pkgver=1051.c9e547c
+pkgrel=1
pkgdesc='Nintendo Game Boy/Game Boy Color core'
arch=('x86_64')
-url='https://github.com/libretro/SameBoy'
+url="https://github.com/libretro/$_gitname"
license=('MIT')
groups=('libretro')
depends=('libretro-core-info')
makedepends=('git' 'clang' 'sdl2' 'rgbds')
_libname=sameboy_libretro
-source=("$pkgname::git+https://github.com/libretro/SameBoy.git#commit=da29506")
+source=("git+https://github.com/libretro/$_gitname.git")
md5sums=('SKIP')
pkgver() {
- cd "$pkgname"
-
+ cd "$_gitname"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
- cd "$pkgname"
-
+ cd "$_gitname"
CC=clang make -f Makefile libretro
}
package() {
- cd "$pkgname"
-
- install -Dm644 "$srcdir/$pkgname/libretro/$_libname.so" \
+ cd "$_gitname"
+ install -Dm644 "$srcdir/$_gitname/libretro/$_libname.so" \
"$pkgdir/usr/lib/libretro/$_libname.so"
}