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

prepare() {
	cd "$srcdir"/xinit-$pkgver
	for i in $source; do
		case $i in
		*.patch) patch -p1 -i "$srcdir"/$i
		esac
	done
}

build() { 
	cd "$srcdir"/xinit-$pkgver
	./configure --prefix=/usr \
		--with-xinitdir=/etc/X11/xinit \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/xinit-$pkgver
	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
	install -m755 "$srcdir"/xsession "$pkgdir"/etc/skel/.xsession || return 1
	install -m755 "$srcdir"/xserverrc "$pkgdir"/etc/X11/xinit/xserverrc || return 1
}
md5sums="56f2d202b3dc10fcd21931a67bb270f7  xinit-1.2.1.tar.bz2
abd072ec435ce084cf4e89c58f83d45c  06_move_serverauthfile_into_tmp.patch
af322d72972d5722b7fc0a9e8f025b15  xinitrc
4f04d2891ea87f50fde518267b7a1154  xsession
bb550d3b9a2d2b6cbe6e2667a3a7cd03  xserverrc"