summaryrefslogtreecommitdiffstats
path: root/testing/plymouth/APKBUILD
blob: 24e6821eeff83490933aade0cfcaea48b6fd9183 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=plymouth
pkgver=0.8.3
pkgrel=0
pkgdesc="graphical bootsplash on linux"
url="http://www.freedesktop.org/wiki/Software/Plymouth"
arch="all"
license="GPL"
depends=""
depends_dev="pango-dev
	     gtk+-dev
	     libpng-dev
	     libdrm-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-x11 $pkgname-log-viewer:logviewer"
source="http://www.freedesktop.org/software/plymouth/releases/plymouth-$pkgver.tar.bz2
	plymouth-rpmatch.patch"

_builddir="$srcdir"/plymouth-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-system-root-install \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	rm -f "$pkgdir"/lib/*.la
	rm -f "$pkgdir"/usr/lib/*.la
	rm -f "$pkgdir"/usr/lib/plymouth/*.la
	rm -f "$pkgdir"/usr/lib/plymouth/renderers/*.la
}

x11() {
	mkdir -p "$subpkgdir"/usr/lib/plymouth/renderers
	mv "$pkgdir"/usr/lib/plymouth/renderers/x11.so "$subpkgdir"/usr/lib/plymouth/renderers
}

logviewer() {
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/plymouth-log-viewer "$subpkgdir"/usr/bin
}

md5sums="a479180467b21dd1c5477160d5a1fd35  plymouth-0.8.3.tar.bz2
7d342aa2f011833647f1c696007b190c  plymouth-rpmatch.patch"