aboutsummaryrefslogtreecommitdiffstats
path: root/main/slim/APKBUILD
blob: f7ae6c988d0822d0d16a8f86ec3a4e6cb61b3ad6 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Contributer: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=slim
pkgver=1.3.6
pkgrel=4
pkgdesc="Desktop-independent graphical login manager for X11"
url="http://slim.berlios.de/"
arch="all"
license="GPL-2"
subpackages="$pkgname-doc"
makedepends="libxmu-dev libpng-dev libjpeg-turbo-dev libxft-dev
	cmake libxrandr-dev consolekit-dev"
depends=
install=
source="http://downloads.sourceforge.net/project/slim.berlios/${pkgname}-${pkgver}.tar.gz
	http://dev.alpinelinux.org/~ncopa/alpine/slim-alpinelinux.tar.gz
	no-slimlock.patch
	libslim-underlinking.patch
	slim-freetype-dirs.patch
	snprintf.patch
	musl-includes.patch
	$pkgname.logrotate
	$pkgname.initd
	"

prepare() {
	cd "$srcdir/slim-$pkgver"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	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|' \
		-e 's|current_theme.*|current_theme       alpinelinux|' \
		slim.conf || return 1
}

build() {
	cd "$srcdir/slim-$pkgver"
	cmake . \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_SKIP_RPATH=ON \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DUSE_PAM=no \
		-DUSE_CONSOLEKIT=yes \
		|| return 1


	make CXX="${CXX:-g++}" CC="${CC:-gcc}" || return 1
}

package() {
	cd "$srcdir/slim-$pkgver"
	make DESTDIR="$pkgdir" MANDIR=/usr/share/man install || return 1

	install -D -m755 ../slim.initd "$pkgdir"/etc/init.d/slim || return 1
	install -D -m644 ../slim.logrotate "$pkgdir"/etc/logrotate.d/slim

	# remove unused systemd service
	rm -f "$pkgdir"/usr/lib/systemd

	# 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
}

md5sums="d40d256394f9ef34cef34d2aa9cb52e6  slim-1.3.6.tar.gz
cd63232c7770b0e67a009a94c2a46b82  slim-alpinelinux.tar.gz
b443d1a03f767fcb1fe33a10a532cef0  no-slimlock.patch
348be5e6570881f601b68c3ba2f7bbed  libslim-underlinking.patch
da8a6a6320dfb9bc7dad46e165c68d60  slim-freetype-dirs.patch
111e3a5f1e5e3d71f2c75f20a285932b  snprintf.patch
f39b25e4191afaa91f7d415905de8932  musl-includes.patch
43da096480bf72c3ccec8ad8400f34f0  slim.logrotate
051d74b0a1c7f276ce8efea0744b3f93  slim.initd"
sha256sums="21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df  slim-1.3.6.tar.gz
dfa910e8d8c1cd3b687d7b0b49d1cb36ba4148de8862667c4ca03da194e42e64  slim-alpinelinux.tar.gz
7658a24019bec1de41de037525731a9ccdb9d05867a99efaeb49af2fb8e7a9a5  no-slimlock.patch
cf506b6a42c86c45c2614e3e36b3e6b280efba93be53bb30a280c2b0c2dc2196  libslim-underlinking.patch
f808e0fd22c0a31ec3b8bb4493aa131a73118a5da419bbc5cc33e43635652bd6  slim-freetype-dirs.patch
ef1fac57a57dfb696db110c8741c0902dd84bac50f516f52d0ee0c8bd4133d5d  snprintf.patch
fdccc8f2cfc225db1b7b57aa4e9ab00784d79f906d4b61043a724e164c4faa98  musl-includes.patch
5bf44748b5003f2332d8b268060c400120b9100d033fa9d35468670d827f6def  slim.logrotate
1e992ab06b1510e24107ad745598a18bcb19f93fbb102487ca5c6a762ac465e6  slim.initd"
sha512sums="345b1dee5d6f0c3716dfa7c5c16274adbf18586bdaaa6af4f310e24c5a61f79a297ffac921a5ba545523317e9fe120916df226c36b9c9b49c2ac9c1ca21dee0c  slim-1.3.6.tar.gz
45e080bd5cc49e5c380d851fee7622ffe6ce9b11fdabe3b3b971618b0d140c39cead5e2a9f6ac5272eed885649b1903c9a4d3c6ce45dcf3026a91198f4d790c5  slim-alpinelinux.tar.gz
3df74cf3c8b2e313b7f394a624c094ec144844003cdd264867a7bd9f46d6a10d9f5e818078340eef76cd52c38bc9ec11989f9dac2f5c693b674c2ec627f447a2  no-slimlock.patch
c66c3908147ec28b68577958bdd7bd4bc7c42b00fc4a7ce30162202a4d0ae18ef7c0c81ca60c661609e479b370ad30261494fe84bb4ffad48232536aec483729  libslim-underlinking.patch
1f957eadb586b8f0523a2cf6ea550280a542500de925383a06d658424c524a4ef5b148aa9150a9f045529c896fe69c013417b9883583acc12a7a656b7202eded  slim-freetype-dirs.patch
22fcbdc54b1a5dc0d3501649addb8e290c63ea4a6f9d0bdbdbe9bdea1c9df785f6763f2cee2ff33e6ca2dd49c1c65fd9d036fd9527f298a7ca9e0c5acc48e854  snprintf.patch
bf1f44814dcf220b91eef8cd766c7eb3b2c2667a211d1206f3e57b88e5e7fbe17ea1e7b3c7c231cb52356b6c7df650af94759b1c154a8dd7d95dc45a9aec0e86  musl-includes.patch
e5f398ea58adbedea7ae40c7a907d2f926148ee6f3c51fc5761b84d1d119c091fa0cf34f908cd49300fcddea71c5c9b6f2ac21731808ce5d73ea65a65b19a55b  slim.logrotate
89bc248ee77f869d1dab11ce051e34bba76b404313ab1d17711e8fa2a1c2e50ba4cd41708fb56a949feadd8d142b83c4d0d5b845e7face4b47c2f97fa824ed39  slim.initd"