aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxdm
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2011-10-13 15:28:47 -0400
committerJeff Bilyk <jbilyk@gmail.com>2011-10-13 15:28:47 -0400
commit8b32f31aa3809b8894bd6d4ff2d3199892bd9f9b (patch)
tree858bc3c151003693459e3614dcf7fcd41d4e74fe /main/lxdm
parent0cc29a741dc8b48a436b1b4de4378f07a896d23c (diff)
downloadaports-8b32f31aa3809b8894bd6d4ff2d3199892bd9f9b.tar.bz2
aports-8b32f31aa3809b8894bd6d4ff2d3199892bd9f9b.tar.xz
main/lxdm: add an Alpine theme instead of modifying Industrial theme
Diffstat (limited to 'main/lxdm')
-rw-r--r--main/lxdm/APKBUILD24
-rw-r--r--main/lxdm/index.theme.alpine5
2 files changed, 22 insertions, 7 deletions
diff --git a/main/lxdm/APKBUILD b/main/lxdm/APKBUILD
index 3ef0efde35..cf43ab83b5 100644
--- a/main/lxdm/APKBUILD
+++ b/main/lxdm/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=lxdm
pkgver=0.4.1
-pkgrel=2
+pkgrel=3
pkgdesc="LXDE desktop login manager"
url="http://wiki.lxde.org/en/LXDM"
license="GPL"
@@ -12,7 +12,8 @@ install=
subpackages="$pkgname-lang"
source="http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz
background.png
- lxdm.initd"
+ lxdm.initd
+ index.theme.alpine"
arch="all"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -28,9 +29,6 @@ prepare() {
;;
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
}
build() {
@@ -53,10 +51,22 @@ package() {
"$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/Industrial/background.png
+ install -m644 -D "$srcdir"/background.png "$pkgdir"/usr/share/lxdm/themes/Alpine/background.png
}
md5sums="8da1cfc2be6dc9217c85a7cf51e1e821 lxdm-0.4.1.tar.gz
a510afe725112947d16f6c1f0602effe background.png
-d6455d172d5d897f6bfcefe9a1a632c7 lxdm.initd"
+d6455d172d5d897f6bfcefe9a1a632c7 lxdm.initd
+06ea32ef440375839851c4bc7caea004 index.theme.alpine"
diff --git a/main/lxdm/index.theme.alpine b/main/lxdm/index.theme.alpine
new file mode 100644
index 0000000000..1a453a7429
--- /dev/null
+++ b/main/lxdm/index.theme.alpine
@@ -0,0 +1,5 @@
+[LXDM Theme]
+Name=Alpine
+Comment=The Alpine Linux Theme adapted from the Industrial Theme
+Author=Jeff Bilyk <jbilyk@alpinelinux.org>;Jakub Steiner <jimmac@ximian.com>;Hong Jen Yee(PCMan) <pcman.tw@gmail.com>
+License=GPL