blob: a638ad442f6f114c438ba682998a816d0aed7ac5 (
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
|
# $Id: PKGBUILD 202652 2013-12-23 08:42:02Z foutrelis $
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: Hugo Ideler <hugoideler@dse.nl>
pkgname=slim
pkgver=1.3.6
pkgrel=3
pkgdesc="Desktop-independent graphical login manager for X11"
arch=('i686' 'x86_64')
url="http://slim.berlios.de/"
license=('GPL2')
depends=('pam' 'libxmu' 'libpng' 'libjpeg' 'libxft' 'libxrandr' 'xorg-xauth')
makedepends=('cmake' 'freeglut')
backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim'
'etc/slimlock.conf')
source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
slim-1.3.6-fix-libslim-libraries.patch
slim-1.3.6-add-sessiondir.patch
slim.pam
slim.logrotate)
sha256sums=('21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df'
'3dfa697f8c058390c7e02e7aba769475057ef8ddde945dc43b8cb7f9724dbda0'
'0dffd53a69eb9033a67fad964df6fc150ee7a483e29d8eb8b559010fbd14e5fd'
'b9a77a614c451287b574c33d41e28b5b149c6d2464bdb3a5274799842bca51a4'
'5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# Fix installation path of slim.service
sed -i 's|set(LIBDIR "/lib")|set(LIBDIR "/usr/lib")|' CMakeLists.txt
patch -Np1 -i "$srcdir/slim-1.3.6-fix-libslim-libraries.patch"
patch -Np1 -i "$srcdir/slim-1.3.6-add-sessiondir.patch"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DUSE_PAM=yes \
-DUSE_CONSOLEKIT=no
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/slim.pam" "$pkgdir/etc/pam.d/slim"
install -Dm644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim"
install -Dm644 slimlock.conf "$pkgdir/etc/slimlock.conf"
# Provide sane defaults
sed -i -e 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' \
-e 's|/var/run/slim.lock|/var/lock/slim.lock|' \
"$pkgdir/etc/slim.conf"
}
# vim:set ts=2 sw=2 et:
|