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

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Sun Jul 28 18:26:33 UTC 2013


    Date: Sunday, July 28, 2013 @ 20:26:32
  Author: bpiotrowski
Revision: 191636

upgpkg: xdg-utils 1.1.0.git20130520-1

- upgrade to latest commit

Modified:
  xdg-utils/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-07-28 18:12:42 UTC (rev 191635)
+++ PKGBUILD	2013-07-28 18:26:32 UTC (rev 191636)
@@ -2,29 +2,30 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=xdg-utils
-_oldver=1.1.0
-_gitver=050333e34e2fe7430ad2ead37e5a0420ac0c2a3e # xdg-mime does not search mimeinfo.cache
-_gitdate=20121008
-pkgver=${_oldver}.git${_gitdate}
-pkgrel=2
+pkgver=1.1.0.git20130520
+pkgrel=1
 pkgdesc="Command line tools that assist applications with a variety of desktop integration tasks"
 arch=('any')
 url="http://portland.freedesktop.org/"
 license=('MIT')
 depends=('sh' 'xorg-xset') # xset needed inside xdg-screensaver
-makedepends=('docbook-xsl' 'lynx' 'xmlto')
+makedepends=('docbook-xsl' 'lynx' 'xmlto' 'git')
 optdepends=('kdebase-runtime: for KDE support in xdg-open'
             'libgnome: for GNOME support in xdg-open'
             'exo: for Xfce support in xdg-open'
             'xorg-xprop: for Xfce support in xdg-open'
             'pcmanfm: for LXDE support in xdg-open'
             'perl-file-mimeinfo: for generic support in xdg-open')
-source=(#http://cgit.freedesktop.org/xdg/xdg-utils/snapshot/xdg-utils-${_gitver}.tar.gz
-        ftp://ftp.archlinux.org/other/$pkgname/xdg-utils-${_gitver}.tar.gz)
-md5sums=('cc321af15724cf7ee1ef014c4a0120ea')
+source=(git://anongit.freedesktop.org/xdg/xdg-utils#commit=2373d9b2b7)
+md5sums=('SKIP')
 
+pkgver() {
+	cd xdg-utils
+	echo "1.1.0.git$(git log -1 --format="%cd" --date=short | sed 's|-||g')"
+}
+
 build() {
-	cd ${srcdir}/${pkgname}-${_gitver}
+	cd xdg-utils
 	./configure --prefix=/usr --mandir=/usr/share/man
 	make scripts-clean -C scripts # needed if it's a git snapshot
 	make man scripts -C scripts # needed if it's a git snapshot
@@ -32,7 +33,7 @@
 }
 
 package() {
-	cd ${srcdir}/${pkgname}-${_gitver}
+	cd xdg-utils
 	make DESTDIR="${pkgdir}" install
 	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 	




More information about the arch-commits mailing list