APKBUILD 3.61 KB
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1 2 3
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=lxdm
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=0.5.3
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
Ariadne Conill's avatar
Ariadne Conill committed
6 7 8
pkgdesc="LXDE desktop login manager"
url="http://wiki.lxde.org/en/LXDM"
license="GPL"
9
depends="bash"
Natanael Copa's avatar
Natanael Copa committed
10 11
makedepends="gtk+2.0-dev consolekit-dev autoconf automake libtool intltool
	linux-headers"
Ariadne Conill's avatar
Ariadne Conill committed
12
install=
Natanael Copa's avatar
Natanael Copa committed
13
subpackages="$pkgname-lang"
Natanael Copa's avatar
Natanael Copa committed
14
source="http://downloads.sourceforge.net/lxdm/$pkgname-$pkgver.tar.xz
Natanael Copa's avatar
Natanael Copa committed
15
	execinfo.patch
Timo Teräs's avatar
Timo Teräs committed
16
	fix-msghdr-usage.patch
17
	background.png
18 19
	lxdm.initd
	index.theme.alpine"
Ariadne Conill's avatar
Ariadne Conill committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
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
Natanael Copa's avatar
Natanael Copa committed
35 36
	libtoolize --force && aclocal && autoheader && autoconf \
		&& automake --add-missing || return 1
Ariadne Conill's avatar
Ariadne Conill committed
37 38 39 40
}

build() {
	cd "$_builddir"
41

42 43 44 45
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Ariadne Conill's avatar
Ariadne Conill committed
46
		--sysconfdir=/etc \
Natanael Copa's avatar
Natanael Copa committed
47 48 49 50
		--libexecdir=/usr/lib/lxdm \
		--without-pam \
		--with-xconn=xcb \
		|| return 1
Ariadne Conill's avatar
Ariadne Conill committed
51 52 53 54 55
	make || return 1
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
56 57 58 59
	make DESTDIR="$pkgdir" DATADIRNAME=share install
	
	sed -i -e "s:^greeter=.*:greeter=/usr/lib/lxdm/lxdm-greeter-gtk:" \
		"$pkgdir"/etc/lxdm/lxdm.conf
Ariadne Conill's avatar
Ariadne Conill committed
60 61

	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
62 63 64 65 66 67 68 69 70 71 72

	# 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
	
73
	# Install the custom Alpine background
74
	install -m644 -D "$srcdir"/background.png "$pkgdir"/usr/share/lxdm/themes/Alpine/background.png
Ariadne Conill's avatar
Ariadne Conill committed
75 76
}

Natanael Copa's avatar
Natanael Copa committed
77
md5sums="061caae432634e6db38bbdc84bc6ffa0  lxdm-0.5.3.tar.xz
Natanael Copa's avatar
Natanael Copa committed
78
72ecfef17755c671963c11694bfc51b1  execinfo.patch
Timo Teräs's avatar
Timo Teräs committed
79
171e655121c7478d12f5ce268734b4af  fix-msghdr-usage.patch
Natanael Copa's avatar
Natanael Copa committed
80
a510afe725112947d16f6c1f0602effe  background.png
81
b0154b7f76fbbfff2b011d5aa1ac9953  lxdm.initd
82
06ea32ef440375839851c4bc7caea004  index.theme.alpine"
Natanael Copa's avatar
Natanael Copa committed
83
sha256sums="4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f  lxdm-0.5.3.tar.xz
Natanael Copa's avatar
Natanael Copa committed
84
d7cca99d05f6a47c01190e88bd895adc104ac465a5ded56cc20bc6ede2f3330d  execinfo.patch
Timo Teräs's avatar
Timo Teräs committed
85
3fb10dcbf096875ca66bd2fe74c846caf2286f07953ac58aefd8d07fa7f8fa92  fix-msghdr-usage.patch
Natanael Copa's avatar
Natanael Copa committed
86
85c461814ff8ce3262badc51103b9a4802fbdda21dbe8160e536793224e83aa9  background.png
87
d61b172db440bb69a6d0154140363eddcf111995de646b8d4a2a6a1eccd763c2  lxdm.initd
Natanael Copa's avatar
Natanael Copa committed
88
223360ecc54cb829fe145dd06ea09b85ed052a08d4baba6517c0fa7ae2175f76  index.theme.alpine"
Natanael Copa's avatar
Natanael Copa committed
89
sha512sums="0e3539c595a71cb850c1756dd075b8d477a4e111a4167714057cac06650e9587f338f797f14122e7b2a2f4ad35b38cd7172b83e996758abeeaf0146d65bbc26f  lxdm-0.5.3.tar.xz
Natanael Copa's avatar
Natanael Copa committed
90
b66d47a3c026f84c76fb6ae0701ff69d2736a2c0fdf898191836c0c5e2b0d624c7a7846cd38596ee800fab53ebcd843c26779c56c0f655df1659ecc5b251b576  execinfo.patch
Timo Teräs's avatar
Timo Teräs committed
91
1eaf438e64901168a557d3e278de4dd7eb4e580594175a26f9c8d27bd8de2dae81467ebd3a96f0a4dfb5f19c2257ce1ee5608e753e8d9d53c2e4ba488f798b0e  fix-msghdr-usage.patch
Natanael Copa's avatar
Natanael Copa committed
92
89640deb308d4f4f22f664096992a99cc03eab39ca5caa690422611fb724c8f245795ae80260cf8b9cb75e3dddf7877ec3aa0670885e01530facc2628cf84ee0  background.png
93
6d271f27f67dfcb88df676e35a97cb0413e6d4039327045036da45d6a68188041dc240e4339840e7b05f77bf80666891ce327ddcf8217b66f032d62aacec8ad6  lxdm.initd
Natanael Copa's avatar
Natanael Copa committed
94
1374daa94bde0fb71056cebc8524da32b57c241a8af97501daa930c43dc087aa3fec2d79f10ceab5a73a4dcf9cce478fb77575d7019cafd54ad9731c9e9dd55f  index.theme.alpine"