aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfce4-session/APKBUILD
blob: 4e9e18a2c178a859454923851dcc440a5ea99b64 (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.12.0
pkgrel=0
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=
source="http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
	busybox-shutdown.patch"


prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	update_config_sub || return 1
	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="d75b257bc0954c238d3c82ce498525aa  xfce4-session-4.12.0.tar.bz2
bfd9132f08f4a92efbe982fb911c511c  busybox-shutdown.patch"
sha256sums="68c85453b097d3ada573dcb7e72acd06e0fc34531996122c10d20096405b7b06  xfce4-session-4.12.0.tar.bz2
def812f4decef365bf7efd4ef7722ff86ed52f664410f1d9a49d7d39da088dff  busybox-shutdown.patch"
sha512sums="7c74991d4c105d993985a3bbd2a7b7730ebd1c84194289e883359737f8ad8683f3c728f53f4967dc7d2967258a04172d8ac8ddf8a9af56888d808f7db53850de  xfce4-session-4.12.0.tar.bz2
745aea2738980b0e8960701af40246b9c3e17ad0c0eb55d1c4629feb7cde472218573c2b27de492c774ae0a5eb503c73088a65df76bde65c9f923edcce03920f  busybox-shutdown.patch"