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

Balló György bgyorgy at archlinux.org
Mon Mar 16 11:19:50 UTC 2020


    Date: Monday, March 16, 2020 @ 11:19:49
  Author: bgyorgy
Revision: 599111

upgpkg: diffuse 0.5.0alpha7+4+g813d6e7-1: Update to python3 fork

Modified:
  diffuse/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 10:38:23 UTC (rev 599110)
+++ PKGBUILD	2020-03-16 11:19:49 UTC (rev 599111)
@@ -3,18 +3,24 @@
 # Contributor: zhuqin <zhuqin83 at gmail.com>
 
 pkgname=diffuse
-pkgver=0.4.8
-pkgrel=3
+pkgver=0.5.0alpha7+4+g813d6e7
+pkgrel=1
 pkgdesc="A graphical tool for merging and comparing text files"
 arch=('any')
 url="http://diffuse.sourceforge.net/"
 license=('GPL')
-depends=('pygtk')
-source=(https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
-md5sums=('2f92668350f7bcdc5fb04bcbe9845409')
+depends=('gtk3' 'python-gobject')
+makedepends=('git')
+_commit=813d6e7bbac0dbcbf464951ba6b070562737ed8d  # master
+source=("git+https://github.com/MightyCreak/diffuse.git#commit=$_commit")
+md5sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-alpha\./alpha/;s/-/+/g'
+}
+
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  python2 install.py --prefix=/usr --destdir="$pkgdir"
-  sed -i 's|^#!.*|&2|' "$pkgdir"/usr/bin/diffuse
+  cd "$srcdir/$pkgname"
+  python install.py --prefix=/usr --destdir="$pkgdir"
 }



More information about the arch-commits mailing list