archrelease: copy trunk to extra-x86_64
[arch-packages.git] / slim / trunk / PKGBUILD
blob8bd36b656917a66b8e9455049d42c8d49c34d3b8
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>
7 pkgname=slim
8 pkgver=1.3.6
9 pkgrel=10
10 pkgdesc="Desktop-independent graphical login manager for X11"
11 arch=('x86_64')
12 url="https://sourceforge.net/projects/slim.berlios/"
13 license=('GPL2')
14 depends=('pam' 'libxmu' 'libpng' 'libjpeg' 'libxft' 'libxrandr' 'xorg-xauth'
15          'ttf-font')
16 makedepends=('cmake' 'freeglut')
17 backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim'
18         'etc/slimlock.conf')
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
25         slim.pam
26         slimlock.pam
27         slim.logrotate)
28 sha256sums=('21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df'
29             '3dfa697f8c058390c7e02e7aba769475057ef8ddde945dc43b8cb7f9724dbda0'
30             '0dffd53a69eb9033a67fad964df6fc150ee7a483e29d8eb8b559010fbd14e5fd'
31             '900b7ffe723b741c05bcc0ca857f300a2131a0029c6532eb17be935451bf2c70'
32             '1e303eda65a06edc8c2d938ab0751ae7744effae48cc185fd27d3cc5b2561522'
33             'bd20c7e4e7dd3e2ffb27d2d60d182c843d6c1aa5a39ad9814509286635674346'
34             'b9a77a614c451287b574c33d41e28b5b149c6d2464bdb3a5274799842bca51a4'
35             'dfe35488b50f19fd96526374edc16850ed37dac919834dd579392b1a7518f2ab'
36             '5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def')
38 prepare() {
39   cd $pkgname-$pkgver
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
51 build() {
52   cd $pkgname-$pkgver
54   cmake \
55     -DCMAKE_INSTALL_PREFIX=/usr \
56     -DCMAKE_BUILD_TYPE=Release \
57     -DCMAKE_SKIP_RPATH=ON \
58     -DUSE_PAM=yes \
59     -DUSE_CONSOLEKIT=no
60   make
63 package() {
64   cd $pkgname-$pkgver
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: