APKBUILD 2.05 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slim
pkgver=1.3.1
4
pkgrel=3
Natanael Copa's avatar
Natanael Copa committed
5 6 7
pkgdesc="Desktop-independent graphical login manager for X11"
url="http://slim.berlios.de/"
license="GPL-2"
8
subpackages="$pkgname-doc"
Natanael Copa's avatar
Natanael Copa committed
9
makedepends="libxmu-dev libpng-dev jpeg-dev libxft-dev"
10
depends=
Natanael Copa's avatar
Natanael Copa committed
11 12
install=
source="http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
13
	http://dev.alpinelinux.org/~/ncopa/alpine/slim-alpinelinux.tar.gz
Natanael Copa's avatar
Natanael Copa committed
14
	$pkgname.logrotate
Natanael Copa's avatar
Natanael Copa committed
15 16 17
	$pkgname.initd
	slim-1.3.1-gcc4.4.patch
	slim-restart.patch"
Natanael Copa's avatar
Natanael Copa committed
18

Natanael Copa's avatar
Natanael Copa committed
19 20 21 22 23 24 25 26 27 28 29 30 31
prepare() {
	cd "$srcdir/slim-$pkgver"
	for i in ../*.patch; do
		patch -p1 -i $i || return 1
	done
	sed -i -e 's|#xserver_arguments.*|xserver_arguments   -nolisten tcp vt07|'\
		-e 's|/var/run/slim.lock|/var/lock/slim.lock|' \
		-e 's|halt_cmd.*|halt_cmd            /sbin/poweroff|'\
		-e 's|reboot_cmd.*|reboot_cmd          /sbin/reboot|'\
		-e 's|console_cmd.*|console_cmd         /usr/bin/terminal|'\
		-e 's|login_cmd.*|login_cmd           exec /bin/sh -l /etc/X11/xinit/xinitrc|' \
		-e 's|screenshot_cmd.*|screenshot_cmd      scrot /slim.png|' \
		-e 's|imagemagick|scrot|' \
32
		-e 's|current_theme.*|current_theme       alpinelinux|' \
Natanael Copa's avatar
Natanael Copa committed
33 34 35 36
		slim.conf || return 1
}

build() {
Natanael Copa's avatar
Natanael Copa committed
37 38
	cd "$srcdir/slim-$pkgver"
	make CXX="${CXX:-g++}" CC="${CC:-gcc}" || return 1
Natanael Copa's avatar
Natanael Copa committed
39
}
Natanael Copa's avatar
Natanael Copa committed
40

Natanael Copa's avatar
Natanael Copa committed
41 42 43
package() {
	cd "$srcdir/slim-$pkgver"
	make DESTDIR="$pkgdir" MANDIR=/usr/share/man install || return 1
Natanael Copa's avatar
Natanael Copa committed
44

Natanael Copa's avatar
Natanael Copa committed
45 46 47
	install -D -m755 ../slim.initd "$pkgdir"/etc/init.d/slim || return 1
	install -D -m644 ../slim.logrotate "$pkgdir"/etc/logrotate.d/slim

48 49 50 51 52 53
	# install our default theme
	cd "$srcdir"/slim-alpinelinux
	install -d "$pkgdir"/usr/share/slim/themes/alpinelinux
	cp background.png panel.png slim.theme \
		"$pkgdir"/usr/share/slim/themes/alpinelinux/
	rm -rf "$pkgdir"/usr/share/slim/themes/default
54 55
}

Natanael Copa's avatar
Natanael Copa committed
56
md5sums="727d0acb24c0fbf0751134c37a9c895f  slim-1.3.1.tar.gz
57
cd63232c7770b0e67a009a94c2a46b82  slim-alpinelinux.tar.gz
Natanael Copa's avatar
Natanael Copa committed
58
43da096480bf72c3ccec8ad8400f34f0  slim.logrotate
Natanael Copa's avatar
Natanael Copa committed
59 60
6ee3a023e56052528295034be809cfc6  slim.initd
a00df4316e2392fff7e75daf5c826cae  slim-1.3.1-gcc4.4.patch
Natanael Copa's avatar
Natanael Copa committed
61
648d871fe7d2a97b7d7b928019e2feee  slim-restart.patch"