# Maintainer: Natanael Copa pkgname=libunique3 pkgver=3.0.2 pkgrel=0 pkgdesc="Library for writing single instance applications" url="http://live.gnome.org/LibUnique" arch="all" license="LGPL" depends= makedepends="gtk+3.0-dev" subpackages="$pkgname-dev $pkgname-doc" source="http://ftp.gnome.org/pub/gnome/sources/libunique/${pkgver%.*}/libunique-$pkgver.tar.xz " _builddir="$srcdir"/libunique-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --disable-dbus \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } sha512sums="b053b9f265c751bd581d15bf73246fb087075eaf75760565671c09a4ab80db342b4d2185050a877c4e25276d24f7895f4325ca60b918a7c4acd9d1591e97a8b4 libunique-3.0.2.tar.xz"