aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxfce4ui/APKBUILD
blob: 177ec130b0344f2c9c0b65cd1ecf7ba77c4c1fd0 (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
# 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"
build() {
	cd "$srcdir"/$pkgname-$pkgver
	./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 "$srcdir"/$pkgname-$pkgver
	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"