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

build () 
{ 
	cd "$srcdir"/xinit-$pkgver
	./configure --prefix=/usr || return 1
	make XINITDIR=/etc/X11/xinit || return 1
	make XINITDIR=/etc/X11/xinit DESTDIR="$pkgdir" install || return 1
	chmod +x "$pkgdir"/usr/bin/startx
	install -m755 -d "$pkgdir"/etc/skel
	install -m755 -d "$pkgdir"/etc/X11/xinit
	install -m755 "$srcdir"/xinitrc "$pkgdir"/etc/skel/.xinitrc || return 1
	install -m755 "$srcdir"/xsession "$pkgdir"/etc/skel/.xsession || return 1
	install -m755 "$srcdir"/xserverrc "$pkgdir"/etc/X11/xinit/xserverrc || return 1
}
md5sums="93c73705ed9eb1e1a6b6938405672f2b  xinit-1.1.1.tar.bz2
cee2d70748a089fbc7db64a4a6e8fdb1  xinitrc
7873d97db30d6c279ed37e3559e7c59d  xsession
bb550d3b9a2d2b6cbe6e2667a3a7cd03  xserverrc"