summaryrefslogtreecommitdiffstats
path: root/main/gtk-xfce-engine/APKBUILD
blob: 26e9079e3dbeddbd7d850edf37281d710d4a5d5d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk-xfce-engine
pkgver=3.0.0
pkgrel=1
pkgdesc="A port of Xfce engine to GTK+-2.0"
url="http://www.xfce.org/"
arch="all"
license="GPL-2"
depends=
makedepends="pkgconfig gtk+-dev libiconv-dev gettext-dev expat-dev"
source="http://archive.xfce.org/src/xfce/gtk-xfce-engine/${pkgver%.*}/gtk-xfce-engine-$pkgver.tar.bz2
	memleak.patch"

_builddir="$srcdir"/$pkgname-$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 1;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir"/ -name '*.la' -delete
}
md5sums="c02dec13f063c285de44d5388902822a  gtk-xfce-engine-3.0.0.tar.bz2
cbb977c1160d0a07c408a18e748d7b68  memleak.patch"