summaryrefslogtreecommitdiffstats
path: root/main/libxfce4ui/APKBUILD
blob: 3ee304dd57f0f46815b15249d51a390ab7280ced (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
47
48
49
50
51
52
53
54
55
56
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxfce4ui
pkgver=4.10.0
pkgrel=2
pkgdesc="Widgets library for the Xfce desktop environment"
url="http://www.xfce.org/"
arch="all"
license="GPL2"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
replaces="libxfcegui4 xfce-utils"
makedepends="gtk+-dev xfconf-dev libxfce4util-dev startup-notification-dev
	glade3-dev gtk-doc"
source="http://archive.xfce.org/src/xfce/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"

depends_dev="gtk+-dev libxfce4util-dev xfconf-dev startup-notification-dev"
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--enable-gladeui \
		--with-vendor-info="Alpine Linux" \
		--disable-static \
		--enable-gtk-doc \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/glade3/modules/*.la \
		|| return 1
}

dev() {
	default_dev
	mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/lib/glade3 "$subpkgdir"/usr/lib/ || return 1
	mv "$pkgdir"/usr/share/glade3 "$subpkgdir"/usr/share/ || return 1
}

md5sums="6df1ce474a3d4885aee31cda9dbc9192  libxfce4ui-4.10.0.tar.bz2"