summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 21 insertions, 24 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7003230520d..a78a8917a52 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,49 +1,46 @@
-# $Id: PKGBUILD 198163 2013-10-30 13:10:44Z allan $
-# Original Package : Ionut Biru <ibiru@archlinux.org>
+# Contributor: Fabio 'Lolix' Loli <lolix@disroot.org>
+# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
-# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
+# Contributor: Lubosz Sarnecki <lubosz@gmail.com>
pkgname=libgee-git
-pkgver=0.12.0.428.f71b18a
+pkgver=0.20.1.r0.g57e4c8a
pkgrel=1
-pkgdesc="GObject collection library"
-url="http://live.gnome.org/Libgee"
+pkgdesc="A collection library providing GObject-based interfaces and classes for commonly used data structures"
+url="https://git.gnome.org/browse/libgee"
license=(LGPL2.1)
arch=(i686 x86_64)
depends=(glib2)
-makedepends=(gobject-introspection vala gnome-common)
-
-provides=('libgee='$pkgver)
-conflicts=('libgee')
-
-source='git+git://git.gnome.org/libgee'
+makedepends=(gobject-introspection vala autoconf-archive git valadoc)
+provides=(libgee)
+conflicts=(libgee)
+source=("git+https://git.gnome.org/browse/libgee")
sha256sums=('SKIP')
-_gitname='libgee'
-
pkgver() {
- cd $_gitname
- version=$(grep AC_INIT configure.ac | sed 's/AC_INIT(\[libgee\], \[//' | sed 's/\], \[https:\/\/bugzilla.gnome.org\/enter_bug.cgi?product=libgee\], \[libgee\])//')
- hash=$(git log --pretty=format:'%h' -n 1)
- revision=$(git rev-list --count HEAD)
-
- echo $version.$revision.$hash
+ cd "${pkgname/-git/}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${pkgname/-git/}"
+ NOCONFIGURE=1 ./autogen.sh
}
build() {
- cd $_gitname
- ./autogen.sh --prefix=/usr --disable-static
+ cd "${pkgname/-git/}"
+ ./configure --prefix=/usr --disable-static
make
}
check() {
- cd $_gitname
+ cd "${pkgname/-git/}"
# generates a bazillion traps - make sure systemd's core_pattern
# is deactivated, or you'll DoS the journal and the system
#make check
}
package() {
- cd $_gitname
+ cd "${pkgname/-git/}"
make DESTDIR="$pkgdir" install
}