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

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Fri Mar 28 21:27:08 UTC 2014


    Date: Friday, March 28, 2014 @ 22:27:08
  Author: bpiotrowski
Revision: 208941

Take advantage of VCS support in makepkg.

Modified:
  mplayer/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-28 21:17:50 UTC (rev 208940)
+++ PKGBUILD	2014-03-28 21:27:08 UTC (rev 208941)
@@ -1,5 +1,6 @@
 # $Id$
-# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Maintainer:  Ionut Biru <ibiru at archlinux.org>
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
 # Contributor: Hugo Doria <hugo at archlinux.org>
 
 pkgbase=mplayer
@@ -18,18 +19,22 @@
 license=('GPL')
 url='http://www.mplayerhq.hu/'
 options=('!buildflags' '!emptydirs')
-source=(ftp://ftp.archlinux.org/other/packages/$pkgbase/$pkgbase-$pkgver.tar.xz{,.sig}
+source=($pkgbase-$pkgver::svn://svn.mplayerhq.hu/mplayer/trunk#revision=$pkgver
         http://ffmpeg.org/releases/ffmpeg-2.2.tar.bz2
         mplayer.desktop
         cdio-includes.patch
         include-samba-4.0.patch)
-md5sums=('0407ab1f9613dcd6bce06a80ac0b028b'
-         'SKIP'
+md5sums=('SKIP'
          '744febca199548c9393b1f1ed05ccdd8'
          '62f44a58f072b2b1a3c3d3e4976d64b3'
          '7b5be7191aafbea64218dc4916343bbc'
          '868a92bdef148df7f38bfa992b26ce9d')
 
+pkgver() {
+  cd $pkgbase-$pkgver
+  svnversion
+}
+
 prepare() {
   cd $pkgbase-$pkgver
   mv ../ffmpeg-2.2 ./ffmpeg
@@ -37,8 +42,7 @@
   patch -p0 -i ../cdio-includes.patch
   patch -p1 -i ../include-samba-4.0.patch
 
-  echo "#define VERSION \"SVN-r$pkgver\"" > version.h
-  echo '#define MP_TITLE "%s "VERSION" (C) 2000-2014 MPlayer Team\n"' >> version.h
+  ./version.sh
 }
 
 build() {




More information about the arch-commits mailing list