aboutsummaryrefslogtreecommitdiffstats
path: root/community/plymouth/APKBUILD
blob: 11ed3c98a366202d02c1abcf9b85ff960f0041b2 (plain) (blame)
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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=plymouth
pkgver=0.9.2
pkgrel=1
pkgdesc="graphical bootsplash on linux"
url="http://www.freedesktop.org/wiki/Software/Plymouth"
arch="all"
license="GPL"
depends=""
depends_dev="pango-dev
	     gtk+3.0-dev
	     libpng-dev
	     libdrm-dev"
makedepends="$depends_dev docbook-xsl autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-themes $pkgname-x11:_render $pkgname-drm:_render"
source="http://www.freedesktop.org/software/plymouth/releases/plymouth-$pkgver.tar.bz2
	plymouth-rpmatch.patch
	plymouth-git-master-20170123.patch
	"

builddir="$srcdir"/plymouth-$pkgver

prepare() {
	default_prepare || return 1
	autoreconf -f -i -s
}

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"/usr/lib/plymouth/*.la
}

themes() {
	mkdir -p "$subpkgdir"/usr/share/plymouth/
	mv "$pkgdir"/usr/share/plymouth/themes/ "$subpkgdir"/usr/share/plymouth/
}

_render() {
	local _name=${subpkgname#${pkgname}-}
	mkdir -p "$subpkgdir"/usr/lib/plymouth/renderers
	mv "$pkgdir"/usr/lib/plymouth/renderers/$_name.so "$subpkgdir"/usr/lib/plymouth/renderers
}

md5sums="ff420994deb7ea203df678df92e7ab7d  plymouth-0.9.2.tar.bz2
7d342aa2f011833647f1c696007b190c  plymouth-rpmatch.patch
d3451ffd12270bdbdaf563c64580addc  plymouth-git-master-20170123.patch"
sha256sums="2f0ce82042cf9c7eadd2517a1f74c8a85fa8699781d9f294a06eade29fbed57f  plymouth-0.9.2.tar.bz2
2281bffcd64de8c2e675656d21b26b0a74fa997af52e941fe6f356d8d4362e37  plymouth-rpmatch.patch
cdbaa71a099bbb75d669db0c581770611ebd82dc5506ae7934cb4b64afdbd7bb  plymouth-git-master-20170123.patch"
sha512sums="89356eb8326504fbf3155de262ce15de0847f0a0e6d157d873cf1dea9af464a6cb9e11d7143ee9a595b217a2487060b5835eba5ac142c3cd6d66689deb272e60  plymouth-0.9.2.tar.bz2
ec1c32ddf7ee418ef1b5d173040db464193d9bca3fd85d5c3a8d2ee13ba1218947f7c9f39c403d3ccced70be28b2c7328e82dc8f967e9bdeea1651dee4be2dc7  plymouth-rpmatch.patch
6545c29190b9cf04df0284a73c26ec7d14fddf2c4d7a8f3dff5242b49fafda24ee2aeab54b44b19deb9228707816b6b3779ea8bec7b742020cb1f7e2ca64b509  plymouth-git-master-20170123.patch"