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


prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in $source; do
		case $i in
		*.patch) msg $; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static \
		--enable-legacy-sm \
		|| 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="1757657c1d590aa6274b7b7cbba33352  xfce4-session-4.10.1.tar.bz2
bfd9132f08f4a92efbe982fb911c511c  busybox-shutdown.patch"
sha256sums="0154fabdc398798c3445374ccc52a2f5bcb2d867fc94bc54114395b24f9cfc83  xfce4-session-4.10.1.tar.bz2
def812f4decef365bf7efd4ef7722ff86ed52f664410f1d9a49d7d39da088dff  busybox-shutdown.patch"
sha512sums="4c6931c350957107fc13f244748287141d524a0e954f48935b5dac2c46a8125af702e1164af98414644f9ea51f5a952db6c57a96fe2a51cab21b616381aac015  xfce4-session-4.10.1.tar.bz2
745aea2738980b0e8960701af40246b9c3e17ad0c0eb55d1c4629feb7cde472218573c2b27de492c774ae0a5eb503c73088a65df76bde65c9f923edcce03920f  busybox-shutdown.patch"