summaryrefslogtreecommitdiffstats
path: root/main/libunique3/APKBUILD
blob: 2a1411e6f0ee0b01ae6f02929a6fdbf4df0c96c5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return;;
		esac
	done
}

build() {
	cd "$_builddir"
  	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--disable-dbus \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '*.la' -delete
}
md5sums="a52dfbd0fee80f645b74227ade4f01ee  libunique-3.0.2.tar.xz"