aboutsummaryrefslogtreecommitdiffstats
path: root/community/lxdm/APKBUILD
blob: 3bae2e54cc0f0c1bf75d6e0f6642d4f22f2b9a99 (plain) (blame)
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
64
65
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lxdm
pkgver=0.5.3
pkgrel=3
pkgdesc="LXDE desktop login manager"
url="https://wiki.lxde.org/en/LXDM"
arch="all !mips !mips64 !s390x" # consolekit2->polkit
license="GPL-3.0-or-later"
depends="bash"
makedepends="gtk+2.0-dev consolekit2-dev autoconf automake libtool intltool
	linux-headers"
subpackages="$pkgname-lang $pkgname-openrc"
source="https://downloads.sourceforge.net/lxdm/lxdm-$pkgver.tar.xz
	execinfo.patch
	fix-msghdr-usage.patch
	background.png
	lxdm.initd
	index.theme.alpine
	"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/lxdm \
		--without-pam \
		--with-xconn=xcb
	make
}

package() {
	make DESTDIR="$pkgdir" DATADIRNAME=share install

	sed -i -e "s:^greeter=.*:greeter=/usr/lib/lxdm/lxdm-greeter-gtk:" \
		"$pkgdir"/etc/lxdm/lxdm.conf

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname

	# Create our custom theme
	cp -a "$pkgdir"/usr/share/lxdm/themes/Industrial "$pkgdir"/usr/share/lxdm/themes/Alpine

	# Replace the default background with the Alpine default one
	sed -i 's/file="wave.svg"/file="background.png"/' "$pkgdir"/usr/share/lxdm/themes/Alpine/gtkrc
	sed -i 's/theme=Industrial/theme=Alpine/' "$pkgdir"/etc/lxdm/lxdm.conf

	# Install the Alpine theme index file
	install -m644 -D "$srcdir"/index.theme.alpine "$pkgdir"/usr/share/lxdm/themes/Alpine/index.theme

	# Install the custom Alpine background
	install -m644 -D "$srcdir"/background.png "$pkgdir"/usr/share/lxdm/themes/Alpine/background.png
}

sha512sums="0e3539c595a71cb850c1756dd075b8d477a4e111a4167714057cac06650e9587f338f797f14122e7b2a2f4ad35b38cd7172b83e996758abeeaf0146d65bbc26f  lxdm-0.5.3.tar.xz
b66d47a3c026f84c76fb6ae0701ff69d2736a2c0fdf898191836c0c5e2b0d624c7a7846cd38596ee800fab53ebcd843c26779c56c0f655df1659ecc5b251b576  execinfo.patch
1eaf438e64901168a557d3e278de4dd7eb4e580594175a26f9c8d27bd8de2dae81467ebd3a96f0a4dfb5f19c2257ce1ee5608e753e8d9d53c2e4ba488f798b0e  fix-msghdr-usage.patch
89640deb308d4f4f22f664096992a99cc03eab39ca5caa690422611fb724c8f245795ae80260cf8b9cb75e3dddf7877ec3aa0670885e01530facc2628cf84ee0  background.png
2136ab2429b0c65969c5c614660efab237bb5da39bc60bebf976b96f6fbffdd73cdd7fd299a004b5100852ce6e93a0c9218b3a39863693da670154503bc53e9f  lxdm.initd
1374daa94bde0fb71056cebc8524da32b57c241a8af97501daa930c43dc087aa3fec2d79f10ceab5a73a4dcf9cce478fb77575d7019cafd54ad9731c9e9dd55f  index.theme.alpine"