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

Jan Steffens heftig at archlinux.org
Wed Mar 29 20:35:26 UTC 2017


    Date: Wednesday, March 29, 2017 @ 20:35:26
  Author: heftig
Revision: 291828

231+1+g0841288-1

Modified:
  libgudev/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++------------
 1 file changed, 26 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-29 20:30:45 UTC (rev 291827)
+++ PKGBUILD	2017-03-29 20:35:26 UTC (rev 291828)
@@ -2,22 +2,36 @@
 # Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
 
 pkgname=libgudev
-pkgver=231
+pkgver=231+1+g0841288
 pkgrel=1
 pkgdesc="GObject bindings for libudev"
-arch=('i686' 'x86_64')
 url="https://wiki.gnome.org/Projects/libgudev"
-license=('LGPL2.1')
-depends=('libsystemd' 'glib2')
-makedepends=('systemd' 'gobject-introspection' 'gtk-doc')
-provides=('libgudev-1.0.so')
-conflicts=('libsystemd<221')
-source=(https://download.gnome.org/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz)
-sha256sums=('3b1ef99d4a8984c35044103d8ddfc3cc52c80035c36abab2bcc5e3532e063f96')
+arch=(i686 x86_64)
+license=(LGPL2.1)
+depends=(libsystemd glib2)
+makedepends=(systemd gobject-introspection gtk-doc git gnome-common)
+provides=(libgudev-1.0.so)
+_commit=08412886f840603db9127d3d66ecbc1cc2326f43  # master
+source=("git+https://git.gnome.org/browse/libgudev#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+check() {
+  cd $pkgname
+  make check
+}
+
 build() {
-  cd "$pkgname-$pkgver"
-
+  cd $pkgname
   ./configure \
     --prefix=/usr \
     --enable-gtk-doc \
@@ -26,7 +40,7 @@
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }
 



More information about the arch-commits mailing list