summaryrefslogtreecommitdiffstats
path: root/x11/slim/APKBUILD
blob: b6f193f404a5e79ea90d9c26b844c34a6f846ea7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slim
pkgver=1.3.1
pkgrel=0
pkgdesc="Desktop-independent graphical login manager for X11"
url="http://slim.berlios.de/"
license="GPL-2"
subpackages="$pkgname-doc"
makedepends="libxmu-dev libpng-dev jpeg-dev libxft-dev"
depends=""
install=
source="http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
	$pkgname.logrotate
	$pkgname-restart.patch"

build () 
{ 
	cd "$srcdir/slim-$pkgver"
	patch -Np1 -i "$srcdir/slim-restart.patch" || return 1
	make CXX="${CXX:-g++}" CC="${CC:-gcc}" || return 1
	make DESTDIR="$pkgdir" MANDIR=/usr/share/man install || return 1

	install -D -m644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim" || return 1
	sed -i 's|#xserver_arguments.*|xserver_arguments   -nolisten tcp vt07|' "$pkgdir/etc/slim.conf" || return 1
	sed -i 's|/var/run/slim.lock|/var/lock/slim.lock|' "$pkgdir/etc/slim.conf" || return 1

}
md5sums="727d0acb24c0fbf0751134c37a9c895f  slim-1.3.1.tar.gz
43da096480bf72c3ccec8ad8400f34f0  slim.logrotate
648d871fe7d2a97b7d7b928019e2feee  slim-restart.patch"