APKBUILD 2.55 KB
Newer Older
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Ariadne Conill's avatar
Ariadne Conill committed
2
pkgname=lxdm
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=0.5.3
Leo's avatar
Leo committed
4
pkgrel=2
Ariadne Conill's avatar
Ariadne Conill committed
5
pkgdesc="LXDE desktop login manager"
6
url="https://wiki.lxde.org/en/LXDM"
Leo's avatar
Leo committed
7
license="GPL-3.0-or-later"
8
depends="bash"
Natanael Copa's avatar
Natanael Copa committed
9
makedepends="gtk+2.0-dev consolekit2-dev autoconf automake libtool intltool
Natanael Copa's avatar
Natanael Copa committed
10
	linux-headers"
Leo's avatar
Leo committed
11
subpackages="$pkgname-lang $pkgname-openrc"
12
source="https://downloads.sourceforge.net/lxdm/$pkgname-$pkgver.tar.xz
Natanael Copa's avatar
Natanael Copa committed
13
	execinfo.patch
Timo Teräs's avatar
Timo Teräs committed
14
	fix-msghdr-usage.patch
15
	background.png
16 17
	lxdm.initd
	index.theme.alpine"
Ariadne Conill's avatar
Ariadne Conill committed
18 19 20 21
arch="all"


prepare() {
Leo's avatar
Leo committed
22 23
	cd "$builddir"
	default_prepare
Natanael Copa's avatar
Natanael Copa committed
24
	libtoolize --force && aclocal && autoheader && autoconf \
Leo's avatar
Leo committed
25
		&& automake --add-missing
Ariadne Conill's avatar
Ariadne Conill committed
26 27 28
}

build() {
Leo's avatar
Leo committed
29
	cd "$builddir"
30 31 32 33
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Ariadne Conill's avatar
Ariadne Conill committed
34
		--sysconfdir=/etc \
Natanael Copa's avatar
Natanael Copa committed
35 36
		--libexecdir=/usr/lib/lxdm \
		--without-pam \
Leo's avatar
Leo committed
37 38
		--with-xconn=xcb
	make
Ariadne Conill's avatar
Ariadne Conill committed
39 40 41
}

package() {
Leo's avatar
Leo committed
42
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
43
	make DESTDIR="$pkgdir" DATADIRNAME=share install
44

Natanael Copa's avatar
Natanael Copa committed
45 46
	sed -i -e "s:^greeter=.*:greeter=/usr/lib/lxdm/lxdm-greeter-gtk:" \
		"$pkgdir"/etc/lxdm/lxdm.conf
Ariadne Conill's avatar
Ariadne Conill committed
47 48

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

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

53
	# Replace the default background with the Alpine default one
Leo's avatar
Leo committed
54
	sed -i 's/file="wave.svg"/file="background.png"/' "$pkgdir"/usr/share/lxdm/themes/Alpine/gtkrc
55 56 57 58
	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
59

60
	# Install the custom Alpine background
61
	install -m644 -D "$srcdir"/background.png "$pkgdir"/usr/share/lxdm/themes/Alpine/background.png
Ariadne Conill's avatar
Ariadne Conill committed
62 63
}

Natanael Copa's avatar
Natanael Copa committed
64
sha512sums="0e3539c595a71cb850c1756dd075b8d477a4e111a4167714057cac06650e9587f338f797f14122e7b2a2f4ad35b38cd7172b83e996758abeeaf0146d65bbc26f  lxdm-0.5.3.tar.xz
Natanael Copa's avatar
Natanael Copa committed
65
b66d47a3c026f84c76fb6ae0701ff69d2736a2c0fdf898191836c0c5e2b0d624c7a7846cd38596ee800fab53ebcd843c26779c56c0f655df1659ecc5b251b576  execinfo.patch
Timo Teräs's avatar
Timo Teräs committed
66
1eaf438e64901168a557d3e278de4dd7eb4e580594175a26f9c8d27bd8de2dae81467ebd3a96f0a4dfb5f19c2257ce1ee5608e753e8d9d53c2e4ba488f798b0e  fix-msghdr-usage.patch
Natanael Copa's avatar
Natanael Copa committed
67
89640deb308d4f4f22f664096992a99cc03eab39ca5caa690422611fb724c8f245795ae80260cf8b9cb75e3dddf7877ec3aa0670885e01530facc2628cf84ee0  background.png
68
6d271f27f67dfcb88df676e35a97cb0413e6d4039327045036da45d6a68188041dc240e4339840e7b05f77bf80666891ce327ddcf8217b66f032d62aacec8ad6  lxdm.initd
Natanael Copa's avatar
Natanael Copa committed
69
1374daa94bde0fb71056cebc8524da32b57c241a8af97501daa930c43dc087aa3fec2d79f10ceab5a73a4dcf9cce478fb77575d7019cafd54ad9731c9e9dd55f  index.theme.alpine"