blob: 57b8ac5b8a3e403b9ec83d9fb968cbafcdca1514 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Contributor: Benjamin Robin <dev@benjarobin.fr>
# Contributor: 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
pkgname=${_pkgname}-unicode
pkgver=1.3.6
pkgrel=6
pkgdesc="Desktop-independent graphical login manager for X11"
arch=('x86_64')
url="https://sourceforge.net/projects/slim.berlios/"
license=('GPL2')
depends=('pam' 'libxmu' 'libpng' 'libjpeg' 'libxft' 'libxrandr' 'xorg-xauth'
'ttf-font')
makedepends=('cmake' 'freeglut')
backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim'
'etc/slimlock.conf')
provides=('slim')
conflicts=('slim')
source=(https://sourceforge.net/projects/slim.berlios/files/slim-1.3.6.tar.gz/download
slim-1.3.6-fix-libslim-libraries.patch
slim-1.3.6-add-sessiondir.patch
slim-1.3.6-systemd-session.patch
slim-1.3.6-default-path.patch
slim.pam
slimlock.pam
slim.logrotate
slim-unicode.patch
slim-utf8.patch
slimlock-utf8.patch)
sha256sums=('21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df'
'3dfa697f8c058390c7e02e7aba769475057ef8ddde945dc43b8cb7f9724dbda0'
'0dffd53a69eb9033a67fad964df6fc150ee7a483e29d8eb8b559010fbd14e5fd'
'900b7ffe723b741c05bcc0ca857f300a2131a0029c6532eb17be935451bf2c70'
'1e303eda65a06edc8c2d938ab0751ae7744effae48cc185fd27d3cc5b2561522'
'b9a77a614c451287b574c33d41e28b5b149c6d2464bdb3a5274799842bca51a4'
'dfe35488b50f19fd96526374edc16850ed37dac919834dd579392b1a7518f2ab'
'5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def'
'18b13bdbab3f756b10e7a5ab50a2f31e4a5f18aa412baf45fa623c75b7860e4b'
'30d1b8e62d41457d9928d40a12078c169d46641604ca4ad0c26651aa5602a98a'
'eb5fe51ab46c7d637d9ed639bd0aeb8567c639233819c4f933d8e49bed57a238')
prepare() {
cd $_pkgname-$pkgver
# Fix installation path of slim.service
sed -i 's|set(LIBDIR "/lib")|set(LIBDIR "/usr/lib")|' CMakeLists.txt
patch -Np1 -i ../slim-1.3.6-fix-libslim-libraries.patch
patch -Np1 -i ../slim-1.3.6-add-sessiondir.patch
patch -Np1 -i ../slim-1.3.6-systemd-session.patch
patch -Np1 -i ../slim-1.3.6-default-path.patch
# Add support of unicode
#patch -p1 -i "$srcdir/unicode.patch"
patch -p1 -i "$srcdir/slim-utf8.patch"
patch -p1 -i "$srcdir/slimlock-utf8.patch"
}
build() {
cd $_pkgname-$pkgver
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DUSE_PAM=yes \
-DUSE_CONSOLEKIT=no
make
}
package() {
cd $_pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/slim.pam" "$pkgdir/etc/pam.d/slim"
install -Dm644 "$srcdir/slimlock.pam" "$pkgdir/etc/pam.d/slimlock"
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:
|