summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a9a4c05a9d360f33d03d4997b84e58f3ba5e62c (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
# Contributor: M0Rf30
# Maintainer: Lari Tikkanen

pkgname=lightdm-webkit-greeter
pkgver=0.1.2
pkgrel=6
pkgdesc="A lightweight display manager"
arch=('i686' 'x86_64')
url="https://launchpad.net/lightdm-webkit-greeter"
license=('GPL3' 'LGPL3')
source=("http://launchpad.net/lightdm-webkit-greeter/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz")
depends=('lightdm' 'webkitgtk2' 'gtk-engines')
options=(!libtool)
makedepends=('gnome-doc-utils' 'gobject-introspection' 'intltool')
md5sums=('ff8247d5bbf3026140531061fbf1f51e')

build() {
  cd $srcdir/$pkgname-$pkgver
     LIBS+="-ljavascriptcoregtk-1.0" ./configure --prefix=/usr \
     --sysconfdir=/etc --libexecdir=/usr/lib/lightdm
   make
   
  # What is Ambiance? This should be a GTK+ 2.x theme, so we use Clearlooks here.
  sed -i '/^theme-name=/s/Ambiance/Clearlooks/' data/lightdm-webkit-greeter.conf

  # Theme 'default' does not exist...
  sed -i '/^webkit-theme=/s/default/webkit/' data/lightdm-webkit-greeter.conf

  # this is Ubuntu branding... Replace it with something useful. ;)
  sed -i '/^background=/s|/usr/share/backgrounds/warty-final-ubuntu.png||' data/lightdm-webkit-greeter.conf
  # Replace Ubuntu font with Dejavusans
  sed -i '/^font-name=/s|Ubuntu 11|DejaVuSans 11|' data/lightdm-webkit-greeter.conf
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install 
}