diff options
author | FabioLolix | 2018-12-11 00:07:17 +0100 |
---|---|---|
committer | FabioLolix | 2018-12-11 00:07:17 +0100 |
commit | 68792de72ce141a9d3f3ad9263d70edc82fe62ca (patch) | |
tree | eb8e23444683403141691ecf250f4286b009cb93 /PKGBUILD | |
parent | 571464cb84dec40adc3bb4832a188f0e77606e72 (diff) | |
download | aur-68792de72ce141a9d3f3ad9263d70edc82fe62ca.tar.gz |
Revision
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 21 insertions, 24 deletions
@@ -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 } |