aboutsummaryrefslogtreecommitdiffstats
path: root/main/xinit/APKBUILD
blob: aa745c92f865dd1a34815f4b3113a335e3814b57 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xinit
pkgver=1.3.4
pkgrel=0
pkgdesc="X.Org initialisation program "
url="http://xorg.freedesktop.org/"
arch="all"
license="GPL"
subpackages="$pkgname-doc"
depends="xauth mcookie xmodmap xrdb"
makedepends="libx11-dev"
source="http://xorg.freedesktop.org/releases/individual/app/xinit-$pkgver.tar.bz2
	06_move_serverauthfile_into_tmp.patch
	xinitrc
	xsession.skel
	Xsession
	xserverrc"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-xinitdir=/etc/X11/xinit \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	chmod +x "$pkgdir"/usr/bin/startx
	install -m755 -d "$pkgdir"/etc/skel
	install -m755 -D "$srcdir"/xinitrc "$pkgdir"/etc/X11/xinit/xinitrc \
		|| return 1
	install -m755 -D "$srcdir"/Xsession "$pkgdir"/etc/X11/xinit/Xsession \
		|| return 1
	install -m755 "$srcdir"/xsession.skel "$pkgdir"/etc/skel/.xsession \
		|| return 1
	install -m755 "$srcdir"/xserverrc "$pkgdir"/etc/X11/xinit/xserverrc \
		|| return 1
	mkdir -p "$pkgdir"/etc/X11/xinit/xinitrc.d || return 1
}

md5sums="4e928452dfaf73851413a2d8b8c76388  xinit-1.3.4.tar.bz2
abd072ec435ce084cf4e89c58f83d45c  06_move_serverauthfile_into_tmp.patch
9e363e9956bbc8748be7af97eb283573  xinitrc
4f04d2891ea87f50fde518267b7a1154  xsession.skel
cf8c0ee89d86b2efa401563441d33560  Xsession
12edd1bd52ddf2084cf0972921db5a84  xserverrc"
sha256sums="75d88d7397a07e01db253163b7c7a00b249b3d30e99489f2734cac9a0c7902b3  xinit-1.3.4.tar.bz2
a5c6ced5822bbb3145e0f30a4b12995782ca6d80ff2d927851ec91b5e41212cb  06_move_serverauthfile_into_tmp.patch
99638abb308a1dcf3cbfa07ccc19ddac394a542e15578004446077516068b8bf  xinitrc
da325bbad10c1e05b61ef250c6cdada784be0a08b9f48984e691ea9a5abc9dd8  xsession.skel
f79bb26d16e482be736bd2ba5f647fcf13084afdcdf5b9cc32ffe6cbf4c1955a  Xsession
86835010b5350c41035495b7b845db0eecf1e4b7eeaf152b12a881fa502e5387  xserverrc"
sha512sums="ac31e4cac86fc5dd4c0e15cf37cb9ac470ef3ace4f86d0063c7e1091342fe64d41fcd12c1840bd8e1cef4cdd7f66bd2fa76bd4061641e9c70941d76d73d0df2e  xinit-1.3.4.tar.bz2
2296c10a5d74bff42d9642a4787dc3f2b77492fc81174af48dc88cd3c8fa49c7f70147b790d8c82c2df6c910d9d412965999e7a342ca28697a97b5d522669edd  06_move_serverauthfile_into_tmp.patch
d215bd6bdf43b1a965910a0f8d2bbfba163ef53ddf5d2dc91d124822b8a55ed01ffbf82f657cc89d30d07b6dbd6c00742dc9455ecc688e4ce8316a26c161b34f  xinitrc
448bc6c7987a4735b6584e307cd5c53092b1a338043293f5f110d11818dd1b80508401a3b6f09525c82a16a88f293b37011d8ca112460b0f95d26897e3e0619e  xsession.skel
b311032a751bb21d6c49ffe1dfc67beb577b5d5bec4a4c12612c4c0f9b9d6d2a07f7435c7d2fe9ab4c318546ee0cb9d4ff3f7ef908e756a818da529e913e667d  Xsession
f86d96d76bcb340021e7904925f0029f8662e4dfc32489198b3a8695dca069da496539e2287249c763fe9c4d8d5d591fd18fe49a0bee822cbbd0eb712efbb89b  xserverrc"