summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Reimer2015-08-24 00:12:15 +0200
committerChristopher Reimer2015-08-24 00:12:15 +0200
commit9c488babe6d12ea003478c9ffe8f4e28fd894f4c (patch)
tree218161d4f4bb90180faabeaee4b3d9b6a3bed714
parent4925cfac6c5b8e61cb83d828586e995c30727170 (diff)
downloadaur-9c488babe6d12ea003478c9ffe8f4e28fd894f4c.tar.gz
Sync from VDR4Arch (https://github.com/VDR4Arch/vdr4arch/commit/a2ff516d850d96a0976a8b01816ef9c472b9d429)
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD18
2 files changed, 16 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 56e2a2a4e9e..f794aef0292 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
pkgbase = vdr-mpv
pkgdesc = mpv player plugin for VDR
- pkgver = 0.0.4
+ pkgver = 0.0.4_6_g559ef4b
pkgrel = 1
- url = http://www.vdr-portal.de/board1-news/board2-vdr-news/126741-announce-mpv-plugin-0-0-2/
+ url = http://projects.vdr-developer.org/projects/plg-mpv
arch = x86_64
arch = i686
arch = arm
@@ -12,9 +12,9 @@ pkgbase = vdr-mpv
depends = mpv
depends = vdr-api=2.2.0
backup = etc/vdr/conf.avail/50-mpv.conf
- source = http://projects.vdr-developer.org/git/vdr-plugin-mpv.git/snapshot/vdr-plugin-mpv-0.0.4.tar.bz2
+ source = git://projects.vdr-developer.org/vdr-plugin-mpv.git#commit=559ef4b794bb52d577c69e8ed3fcce34e10cd3f0
source = 50-mpv.conf
- md5sums = 75e740d1559bc5e06845971d880e8371
+ md5sums = SKIP
md5sums = d1f90a5bc8d735b48764e12384324750
pkgname = vdr-mpv
diff --git a/PKGBUILD b/PKGBUILD
index 7b8bcc8f9ec..c5516424399 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,29 +2,35 @@
# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname=vdr-mpv
-pkgver=0.0.4
+pkgver=0.0.4_6_g559ef4b
+_commit=559ef4b794bb52d577c69e8ed3fcce34e10cd3f0
_vdrapi=2.2.0
pkgrel=1
pkgdesc="mpv player plugin for VDR"
-url="http://www.vdr-portal.de/board1-news/board2-vdr-news/126741-announce-mpv-plugin-0-0-2/"
+url="http://projects.vdr-developer.org/projects/plg-mpv"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('AGPL3')
depends=('mpv' "vdr-api=${_vdrapi}")
_plugname=${pkgname//vdr-/}
-source=("http://projects.vdr-developer.org/git/vdr-plugin-mpv.git/snapshot/vdr-plugin-$_plugname-$pkgver.tar.bz2"
+source=("git://projects.vdr-developer.org/vdr-plugin-mpv.git#commit=$_commit"
"50-${pkgname//vdr-/}.conf")
backup=("etc/vdr/conf.avail/50-${pkgname//vdr-/}.conf")
-md5sums=('75e740d1559bc5e06845971d880e8371'
+md5sums=('SKIP'
'd1f90a5bc8d735b48764e12384324750')
+pkgver() {
+ cd "${srcdir}/vdr-plugin-${_plugname}"
+ git describe --tags | sed 's/-/_/g;s/v//'
+}
+
build() {
- cd "${srcdir}/vdr-plugin-$_plugname-$pkgver"
+ cd "${srcdir}/vdr-plugin-${_plugname}"
make
}
package() {
- cd "${srcdir}/vdr-plugin-$_plugname-$pkgver"
+ cd "${srcdir}/vdr-plugin-${_plugname}"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"