[arch-commits] Commit in mpv/trunk (PKGBUILD)

Christian Hesse eworm at archlinux.org
Wed Aug 26 18:26:50 UTC 2015


    Date: Wednesday, August 26, 2015 @ 20:26:50
  Author: eworm
Revision: 138795

upgpkg: mpv 41859.gf1778d1f-1

Upstream states[0]:

> Note: due to the release manager being MIA, releases are hereby
> stopped. Use git master.

So let's build from git...

[0] https://github.com/mpv-player/mpv/releases/tag/v0.9.2

Modified:
  mpv/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-08-26 17:38:36 UTC (rev 138794)
+++ PKGBUILD	2015-08-26 18:26:50 UTC (rev 138795)
@@ -4,8 +4,9 @@
 # Contributor: Eivind Uggedal <eivind at uggedal.com>
 
 pkgname=mpv
-pkgver=0.9.2
-pkgrel=2
+_commit=f1778d1f
+pkgver=41859.gf1778d1f
+pkgrel=1
 pkgdesc='Video player based on MPlayer/mplayer2'
 arch=('i686' 'x86_64')
 license=('GPL')
@@ -20,17 +21,23 @@
 optdepends=('youtube-dl: for video-sharing websites playback')
 options=('!emptydirs' '!buildflags')
 install=mpv.install
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz")
-md5sums=('ed1384e703f7032e531731842e4da4f7')
+source=("git://github.com/mpv-player/mpv.git#commit=${_commit}")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+
+  echo "$(git rev-list --count HEAD).g${_commit}"
+}
+
 prepare() {
-  cd $pkgname-$pkgver
+  cd $pkgname
 
   ./bootstrap.py
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
 
   ./waf configure --prefix=/usr \
     --confdir=/etc/mpv \
@@ -42,7 +49,7 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   ./waf install --destdir="$pkgdir"
 
   install -d "$pkgdir"/usr/share/doc/mpv/examples



More information about the arch-commits mailing list