aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtk-engines/APKBUILD
blob: b1e45615cf54006d7c48c1bc90e690dc0631ed22 (plain) (blame)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=gtk-engines
pkgver=2.21.0
pkgrel=2
pkgdesc="collection of gtk+ engines"
url="http://www.gtk.org/"
arch="all"
license="GPL"
depends="$pkgname-clearlooks
	$pkgname-crux
	$pkgname-industrial
	$pkgname-mist
	$pkgname-redmond
	$pkgname-thinice
	"
makedepends="gtk+-dev intltool"
install=
subpackages="$pkgname-lang $pkgname-dev $depends"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	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 \
		--enable-animation \
		--disable-scrollkeeper \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

_mv_engine() {
	pkgdesc="GTK $1 engine"
	replaces="gtk-engines"
	depends=
	cd "$pkgdir"
	find -name "$2" | while read i; do
		mkdir -p "$subpkgdir"/${i%/*}
		mv $i "$subpkgdir"/$i
	done
}

clearlooks() { _mv_engine "Clearlooks" '*[Cc]learlooks*'; }
crux() { _mv_engine "Crux" '*[Cc]rux*'; }
industrial() { _mv_engine "Industrial" '*[Ii]ndustrial*'; }
mist() { _mv_engine "Mist" '*[Mm]ist*'; }
redmond() { _mv_engine "Redmond" '*[Rr]edmond*'; }
thinice() { _mv_engine "ThinIce" '*[Tt]hin[Ii]ce*'; }

md5sums="d82ae66d6eb045d83c30b78b13818d41  gtk-engines-2.21.0.tar.gz"