# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ # Maintainer : Aaron Griffin # Contributor: Hugo Ideler pkgname=slim pkgver=1.3.0 pkgrel=2 pkgdesc="Simple Login Manager for X11" arch=(i686 x86_64) url="http://slim.berlios.de" backup=(etc/slim.conf) depends=(gcc libxmu libxft libjpeg libpng bash) install=slim.install license=('GPL') source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz slim slim.logrotate stdlib.patch) md5sums=('1c1a87f3cbd3c334c874585e42701961' '07431fcbd753d3abbcfedaa76401e212' '257cf53a3f762ff609e2afd265dac953' 'd8f13befcc09e2ca057299dbe5539b1d') build() { cd $startdir/src/$pkgname-$pkgver patch < ../stdlib.patch sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" Makefile cp /usr/include/shadow.h . #wtf is going on with this? it works fine if copied locally sed -i "s|/usr/X11R6/|/usr/|g" Makefile make || return 1 sed -i "s|/usr/X11R6/include|/usr/include/xorg|g" slim.conf sed -i "s|/usr/X11R6/|/usr/|g" slim.conf make DESTDIR=$startdir/pkg install install -D -m755 -o root -g root $startdir/src/slim $startdir/pkg/etc/rc.d/slim install -D -m644 -o root -g root $startdir/src/slim.logrotate $startdir/pkg/etc/logrotate.d/slim # let's make this a tad safer... "sane defaults" and all sed -i "s@#xserver_arguments.*@xserver_arguments -nolisten tcp vt07@"\ $startdir/pkg/etc/slim.conf # lockfile is defaulted in /var/run, which is not cleared at boot # (causes problems) - thanks bogomipz sed -i 's@/var/run/slim.lock@/var/lock/slim.lock@' $startdir/pkg/etc/slim.conf }