aboutsummaryrefslogblamecommitdiffstats
path: root/main/wayland/APKBUILD
blob: 593e4d910c40d2f324a54422691e201e60ab7c5e (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: Valery Kartel <valery.kartel@gmail.com>
pkgname=wayland
pkgver=1.17.0
pkgrel=0
pkgdesc="A computer display server protocol"
url="http://wayland.freedesktop.org"
arch=all
license="MIT"
depends="$pkgname-libs-client $pkgname-libs-cursor $pkgname-libs-egl $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-egl:_libs
	$pkgname-libs-cursor:_libs $pkgname-libs-server:_libs"
source="https://wayland.freedesktop.org/releases/$pkgname-$pkgver.tar.xz
	tests-ignore-debugger.patch
	"

builddir="$srcdir/$pkgname-$pkgver"

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 WAYLAND_TEST_IGNORE_DEBUGGER=1
}

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

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

_libs() {
	depends=
	local name=${subpkgname#$pkgname-libs-}
	pkgdesc="$pkgdesc ($name library)"
	case "$name" in
		egl) replaces="mesa-libwayland-egl";;
	esac
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*-$name.so.* "$subpkgdir"/usr/lib
}

sha512sums="c5051aab5ff078b368c196ecfedb33ccd961265bb914845d7ed81de361bb86ae18299575baa6c4eceb0d82cf8b495e8293f31b51d1cbc05d84af0a199ab3f946  wayland-1.17.0.tar.xz
0f65a55265e9134ab08cabf67f9d1919c85c4cb6b69129e78bc6c50057cafcaf143007716a0fa73b2eb43d6b605944c320a12a36dbb5f15fcd2f5e770248c480  tests-ignore-debugger.patch"