summaryrefslogblamecommitdiff
path: root/user/wayland/APKBUILD
blob: 0c774d9946c17f5ca79e79faf4d6d70d816e5c18 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                   
              
               

             
                                            

                                     
                          





                                                                        
                                                                         







































                                                              
                                                                                                                                                                    
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: 
pkgname=wayland
pkgver=1.16.0
pkgrel=0
pkgdesc="A computer display server protocol"
url="https://wayland.freedesktop.org"
arch="all"
options="!check"  # Buggy.
license="MIT"
depends="$pkgname-libs-client $pkgname-libs-cursor $pkgname-libs-server"
depends_dev="libffi-dev expat-dev"
makedepends="$depends_dev doxygen xmlto graphviz grep libxml2-dev bash"
subpackages="$pkgname-dev $pkgname-libs-client:_libs
	$pkgname-libs-cursor:_libs $pkgname-libs-server:_libs"
source="https://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-documentation \
		--disable-static
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

dev() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$pkgdir"/usr/share \
		"$subpkgdir"/usr
	default_dev
}

_libs() {
	local name=${subpkgname#$pkgname-libs-}
	pkgdesc="$pkgdesc ($name library)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*-$name.so.* "$subpkgdir"/usr/lib
}

sha512sums="64eca2b1c0bc7913508a5499dae87e2723c712d8024acbb4c77c3c4a6c20de78c10704ae9827fd034116ca540a547aeec28c5a1e3bd382b23f85231424b0f49c  wayland-1.16.0.tar.xz"