# $Id: PKGBUILD 228895 2015-01-10 20:27:14Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>

pkgname=libgsystem
pkgver=2015.1
pkgrel=1
pkgdesc='"Copylib" for system service modules using GLib with GCC'
url="https://wiki.gnome.org/Projects/LibGSystem"
license=(GPL2)
arch=(i686 x86_64)
depends=(glib2 libsystemd)
makedepends=(gobject-introspection gtk-doc systemd)
source=(https://git.gnome.org/browse/$pkgname/snapshot/$pkgname-$pkgver.tar.xz)
sha256sums=('d94d49d8980329b0e5b7d393326e693f6242772aa4cd012b5eff802b615eb15c')

build() {
  cd $pkgname-$pkgver
  ./autogen.sh --prefix=/usr --disable-static
  make
}

check() {
  cd $pkgname-$pkgver
  make check
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
