aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxdm/APKBUILD
blob: 56754a97ef19e211ada1fc41f937f6a24b62e96e (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
60
61
62
63
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=lxdm
pkgver=0.3.0
pkgrel=3
pkgdesc="LXDE desktop login manager"
url="http://wiki.lxde.org/en/LXDM"
license="GPL"
depends="bash"
makedepends="autoconf automake gtk+-dev consolekit-dev"
install=
source="http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz
	background.png
	lxdm.initd
	lxdm-execinfo.patch
	lxdm-nopam.patch"
arch="all"

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

prepare() {
	cd "$_builddir"

	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i..."
			patch -s -p1 -N -i "$srcdir"/$i || return 1
			;;
		esac
	done

	# Replace the default background with the Alpine default one
	sed -i 's/file="wave.svg"/file="background.png"/' "$_builddir"/data/themes/Industrial/gtkrc

	autoreconf
}

build() {
	cd "$_builddir"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-pam
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	# Install the custom Alpine background
	install -m644 -D "$srcdir"/background.png "$pkgdir"/usr/share/lxdm/themes/Industrial/background.png
}

md5sums="1d0688e088edab7c3c563263eb2f9654  lxdm-0.3.0.tar.gz
50022ef35118455e23d4e4b8e2e912af  background.png
d6455d172d5d897f6bfcefe9a1a632c7  lxdm.initd
045da38f5bb183ccacc489ea7e50e927  lxdm-execinfo.patch
0d44e8cd97894fd680e3f09e680c3481  lxdm-nopam.patch"