1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: Thayer Williams <thayer@archlinux.org>
4 # Contributor: Alexander Fehr <pizzapunk gmail com>
5 # Contributor: Hugo Ideler <hugoideler@dse.nl>
10 pkgdesc="Desktop-independent graphical login manager for X11"
12 url="https://sourceforge.net/projects/slim.berlios/"
14 depends=('pam' 'libxmu' 'libpng' 'libjpeg' 'libxft' 'libxrandr' 'xorg-xauth'
16 makedepends=('cmake' 'freeglut')
17 backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim'
19 source=(https://downloads.sourceforge.net/project/slim.berlios/$pkgname-$pkgver.tar.gz
20 slim-1.3.6-fix-libslim-libraries.patch
21 slim-1.3.6-add-sessiondir.patch
22 slim-1.3.6-systemd-session.patch
23 slim-1.3.6-default-path.patch
24 slim-1.3.6-gcc11.patch
28 sha256sums=('21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df'
29 '3dfa697f8c058390c7e02e7aba769475057ef8ddde945dc43b8cb7f9724dbda0'
30 '0dffd53a69eb9033a67fad964df6fc150ee7a483e29d8eb8b559010fbd14e5fd'
31 '900b7ffe723b741c05bcc0ca857f300a2131a0029c6532eb17be935451bf2c70'
32 '1e303eda65a06edc8c2d938ab0751ae7744effae48cc185fd27d3cc5b2561522'
33 'bd20c7e4e7dd3e2ffb27d2d60d182c843d6c1aa5a39ad9814509286635674346'
34 'b9a77a614c451287b574c33d41e28b5b149c6d2464bdb3a5274799842bca51a4'
35 'dfe35488b50f19fd96526374edc16850ed37dac919834dd579392b1a7518f2ab'
36 '5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def')
41 # Fix installation path of slim.service
42 sed -i 's|set(LIBDIR "/lib")|set(LIBDIR "/usr/lib")|' CMakeLists.txt
44 patch -Np1 -i ../slim-1.3.6-fix-libslim-libraries.patch
45 patch -Np1 -i ../slim-1.3.6-add-sessiondir.patch
46 patch -Np1 -i ../slim-1.3.6-systemd-session.patch
47 patch -Np1 -i ../slim-1.3.6-default-path.patch
48 patch -Np1 -i ../slim-1.3.6-gcc11.patch
55 -DCMAKE_INSTALL_PREFIX=/usr \
56 -DCMAKE_BUILD_TYPE=Release \
57 -DCMAKE_SKIP_RPATH=ON \
66 make DESTDIR="$pkgdir" install
68 install -Dm644 "$srcdir/slim.pam" "$pkgdir/etc/pam.d/slim"
69 install -Dm644 "$srcdir/slimlock.pam" "$pkgdir/etc/pam.d/slimlock"
70 install -Dm644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim"
71 install -Dm644 slimlock.conf "$pkgdir/etc/slimlock.conf"
73 # Provide sane defaults
74 sed -i -e 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' \
75 -e 's|/var/run/slim.lock|/var/lock/slim.lock|' \
76 "$pkgdir/etc/slim.conf"
79 # vim:set ts=2 sw=2 et: