blob: ec61116170e41a60465896759a46a940554141e9 (
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
64
65
66
67
68
69
70
71
72
73
74
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=lxdm
pkgver=0.4.1
pkgrel=4
pkgdesc="LXDE desktop login manager"
url="http://wiki.lxde.org/en/LXDM"
license="GPL"
depends="bash"
makedepends="gtk+-dev consolekit-dev"
install=
subpackages="$pkgname-lang"
source="http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz
glib2-2.32.0.patch
background.png
lxdm.initd
index.theme.alpine"
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
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/lxdm \
--without-pam \
--with-xconn=xcb \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
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
}
md5sums="8da1cfc2be6dc9217c85a7cf51e1e821 lxdm-0.4.1.tar.gz
32400e029dcfae4873e957e4c9135787 glib2-2.32.0.patch
a510afe725112947d16f6c1f0602effe background.png
d6455d172d5d897f6bfcefe9a1a632c7 lxdm.initd
06ea32ef440375839851c4bc7caea004 index.theme.alpine"
|