aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfce4-settings/APKBUILD
blob: ffc6ec035a776cf02cd0711af443a4dc7682ebc5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-settings
pkgver=4.6.4
pkgrel=1
pkgdesc="Settings manager for xfce"
url="http://www.xfce.org/"
license="GPL-2"
depends=
makedepends="exo-dev libnotify-dev libxfcegui4-dev libxklavier-dev libwnck-dev
	libglade-dev pkgconfig intltool gettext-dev libiconv-dev expat-dev
	libxi-dev libsm-dev e2fsprogs-dev libxkbfile-dev libxrandr-dev
	autoconf automake libtool"
source="http://archive.xfce.org/src/xfce/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
	xfce4-settings-4.7.1-libxklavier.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in "$srcdir"/*.patch; do
		[ -f "$i" ] || continue
		msg "Applying ${i##*/}"
		patch -p1 -i "$i" || return 1
	done

	# use tango as default icon set
	sed -i -e 's/Rodent/Tango/g' xfsettingsd/xsettings.xml \
		dialogs/appearance-settings/main.c || return 1

	msg "Regenerating configure script"
	autoheader && autoconf || return 1
}

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

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="04985407e8e5b916c44780314a177e96  xfce4-settings-4.6.4.tar.bz2
9a03696ed6200801d296c8adf6816a06  xfce4-settings-4.7.1-libxklavier.patch"