summaryrefslogblamecommitdiff
path: root/user/wayland/APKBUILD
blob: c38725ef3c40393263e850a97bc03263e5860164 (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: Sheila Aman <sheila@vulpine.house>
pkgname=wayland
pkgver=1.20.0
pkgrel=1
pkgdesc="A computer display server protocol"
url="https://wayland.freedesktop.org"
arch="all"
license="MIT"
depends=""
depends_dev="libffi-dev expat-dev"
makedepends="$depends_dev doxygen xmlto graphviz grep libxml2-dev bash meson"
subpackages="$pkgname-dev"
replaces="wayland-libs-client wayland-libs-cursor wayland-libs-server"
source="https://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Ddocumentation=false \
		build

	ninja -C build
}

check() {
	export XDG_RUNTIME_DIR=$(mktemp -d)
	ninja -C build test
	rm -fr "${XDG_RUNTIME_DIR}"
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

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

sha512sums="e8a1f410994b947f850799bdd0d95a2429d8467f853e62a0ab3915a4e9fe130f8aa977e03715114ab740c6ec546edea63d275ce7f927d4f3029ea126e6a7d215  wayland-1.20.0.tar.xz"