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

Jan Steffens heftig at archlinux.org
Mon Oct 10 12:00:31 UTC 2016


    Date: Monday, October 10, 2016 @ 12:00:31
  Author: heftig
Revision: 278165

3.22.0-1

Modified:
  gpaste/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-10 11:48:08 UTC (rev 278164)
+++ PKGBUILD	2016-10-10 12:00:31 UTC (rev 278165)
@@ -2,36 +2,44 @@
 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
 
 pkgname=gpaste
-pkgver=3.20.4
-pkgrel=2
+pkgver=3.22.0
+pkgrel=1
 pkgdesc="Clipboard management system"
 url="http://www.imagination-land.org/tags/GPaste.html"
 license=(GPL3)
 arch=(i686 x86_64)
 depends=(gtk3)
-makedepends=(intltool vala appstream-glib gobject-introspection gnome-shell gnome-control-center)
+makedepends=(intltool vala appstream-glib gobject-introspection gnome-shell gnome-control-center git)
 optdepends=("wgetpaste: Upload clipboard contents")
 options=(!emptydirs)
-source=("http://www.imagination-land.org/files/$pkgname/$pkgname-$pkgver.tar.xz")
-sha256sums=('c27e4a934c5abe399e3a5420611ee41474b96abbdb5c320fef1652a6a62b2b60')
+_commit=38568b15bebf021b767ba5b906bf831851172661  # tags/v3.22.0^0
+source=("git+https://github.com/keruspe/gpaste#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr \
-    --libexecdir=/usr/lib \
-    --sysconfdir=/etc \
-    --enable-vala \
-    --enable-applet
+  cd $pkgname
+  ./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc \
+    --enable-vala --enable-applet
   make
 }
 
 check () {
-  cd $pkgname-$pkgver
-  #make check
+  cd $pkgname
+  make check
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 
   install -Dm644 data/completions/gpaste-client \



More information about the arch-commits mailing list