summaryrefslogtreecommitdiffstats
path: root/testing/lightdm/APKBUILD
blob: 694f83a739bca5cb9ba83516363f3fa94635488c (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lightdm
pkgver=1.4.0
pkgrel=0
pkgdesc="A cross-desktop display manager"
url="http://www.freedesktop.org/wiki/Software/LightDM"
arch="all"
license="GPL-3"
depends="dbus"
depends_dev=""
makedepends="linux-pam-dev gtk+3.0-dev libxklavier-dev libxext-dev
	autoconf automake libtool gobject-introspection-dev itstool"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://launchpad.net/lightdm/${pkgver%.*}/$pkgver/+download/lightdm-$pkgver.tar.gz
	disallow-guest.patch
	uclibc-language.patch
	lightdm.initd"

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

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-liblightdm-gobject \
		--with-greeter-session=lightdm-gtk-greeter \
		|| return 1

	# workaround build bug
	touch tests/src/lightdm-session

	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
	mv "$pkgdir"/usr/lib/locale "$pkgdir"/usr/share/

	install -Dm755 "$srcdir"/lightdm.initd "$pkgdir"/etc/init.d/lightdm
}

md5sums="622d9087ec773dd0626a250a5868f88c  lightdm-1.4.0.tar.gz
72a44670872ce38ec0229e6595f0c629  disallow-guest.patch
66782244aa11446e586d80e52ca74775  uclibc-language.patch
9eb01e4202919424face9bafbda4936c  lightdm.initd"