summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a78a8917a52daf6c1f7b11fc9c0a5621934f2a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Contributor: Fabio 'Lolix' Loli <lolix@disroot.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Lubosz Sarnecki <lubosz@gmail.com>

pkgname=libgee-git
pkgver=0.20.1.r0.g57e4c8a
pkgrel=1
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 autoconf-archive git valadoc)
provides=(libgee)
conflicts=(libgee)
source=("git+https://git.gnome.org/browse/libgee")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname/-git/}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "${pkgname/-git/}"
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd "${pkgname/-git/}"
  ./configure --prefix=/usr --disable-static
  make
}

check() {
  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 "${pkgname/-git/}"
  make DESTDIR="$pkgdir" install
}