summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCecile Tonglet2017-07-04 11:25:42 +0200
committerCecile Tonglet2017-07-04 11:25:42 +0200
commitb229b5b44bdaf9953ebbc13390c6497ed492f191 (patch)
treea673690637ed3e5b587f20d1a04f0a87d0042bc3
parenta6b22600fed5e58adc5ebfd278601b30d60cd0b0 (diff)
downloadaur-b229b5b44bdaf9953ebbc13390c6497ed492f191.tar.gz
Upgrade to Git version directly
Building from the latest commit seems to work again.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD20
2 files changed, 19 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 526fa599cf8..d6920d6d42d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = retroarch-rbp-git
pkgdesc = Reference frontend for the libretro API.
- pkgver = 1.6.1
+ pkgver = 1.6.1.139.g3a141cb89
pkgrel = 1
url = http://www.libretro.com
arch = arm
@@ -8,6 +8,7 @@ pkgbase = retroarch-rbp-git
arch = armv7h
groups = libretro
license = GPL
+ makedepends = git
depends = mesa
depends = mesa-libgl
depends = libusb
@@ -31,8 +32,8 @@ pkgbase = retroarch-rbp-git
provides = retroarch-git
conflicts = retroarch
backup = etc/retroarch.cfg
- source = retroarch-1.6.1.tar.gz::https://github.com/libretro/RetroArch/archive/v1.6.1.tar.gz
- sha256sums = 80ea147e679d1012dd4c05ac287ecb783b78973f8ed4bd4b0959ee778a4c3088
+ source = git+https://github.com/libretro/RetroArch.git
+ sha256sums = SKIP
pkgname = retroarch-rbp-git
diff --git a/PKGBUILD b/PKGBUILD
index ca362944ba9..26910e4eead 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
# Contributor: Themaister <maister@archlinux.us>
pkgname=retroarch-rbp-git
-pkgver=1.6.1
+pkgver=1.6.1.139.g3a141cb89
pkgrel=1
pkgdesc="Reference frontend for the libretro API."
arch=('arm' 'armv6h' 'armv7h')
@@ -12,6 +12,7 @@ url="http://www.libretro.com"
license=('GPL')
groups=('libretro')
depends=('mesa' 'mesa-libgl' 'libusb' 'openal' 'sdl2')
+makedepends=('git')
provides=('retroarch' 'retroarch-git')
optdepends=('libretro-desmume: Nintendo DS core'
'libretro-gambatte: Nintendo Game Boy/Game Boy Color core'
@@ -29,11 +30,20 @@ optdepends=('libretro-desmume: Nintendo DS core'
'retroarch-autoconfig-udev: udev joypad autoconfig')
conflicts=('retroarch')
backup=('etc/retroarch.cfg')
-source=("retroarch-${pkgver}.tar.gz::https://github.com/libretro/RetroArch/archive/v${pkgver}.tar.gz")
-sha256sums=('80ea147e679d1012dd4c05ac287ecb783b78973f8ed4bd4b0959ee778a4c3088')
+_gitname=RetroArch
+source=("git+https://github.com/libretro/${_gitname}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${_gitname}"
+ local version=$(git describe --tags)
+ local version=${version/v/}
+ local version=${version//-/.}
+ echo $version
+}
build() {
- cd RetroArch-${pkgver}
+ cd "${_gitname}"
./configure --prefix=/usr --enable-neon --enable-dispmanx --enable-floathard --enable-udev --disable-ffmpeg \
--disable-cg \
@@ -44,7 +54,7 @@ build() {
}
package() {
- cd RetroArch-${pkgver}
+ cd "${_gitname}"
make install DESTDIR="${pkgdir}"
}