aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfce4-session/APKBUILD
blob: a341b7f68e797ad49c1163008ff4ee20b2b94b0b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-session
pkgver=4.10.0
pkgrel=1
pkgdesc="A session manager for Xfce"
url="http://www.xfce.org/"
arch="all"
license="GPL2"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="libxfce4ui-dev libwnck-dev libice-dev xfce4-panel-dev"
depends="hicolor-icon-theme iceauth"
install=
replaces="xfce-utils"
source="http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
	busybox-shutdown.patch"

depends_dev="libxfcegui4-dev xfconf-dev"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	patch -p1 -i ../busybox-shutdown.patch || return 1
}

build() {
	cd "$srcdir"/$pkgname-$pkgver

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static \
		--enable-legacy-sm \
		--disable-gnome \
		--disable-session-screenshots \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	# tips doesnt work and i dont like them.
	# just remove to save space
	rm -f "$pkgdir"/etc/xdg/autostart/xfce4-tips-autostart.desktop \
		"$pkgdir"/usr/bin/xfce4-tips
	find "$pkgdir" -name '*.la' -delete
}

md5sums="4768e1a41a0287af6aad18b329a0f230  xfce4-session-4.10.0.tar.bz2
bfd9132f08f4a92efbe982fb911c511c  busybox-shutdown.patch"