aboutsummaryrefslogblamecommitdiffstats
path: root/main/libxkbcommon/APKBUILD
blob: 3401620053a61159b00e1e1fd26a8fc75e0d9017 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                             
                    
            
        
                                     
                                

             
                          





                                               


                   
                   
                                                                         

                                                                                                            

         
                      


                                       
                                        
                     
                                                  

 
         
                                           

 
           
                                                             

 





                                                            





                                                                 
                                                                                                                                                                        
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libxkbcommon
pkgver=1.0.1
pkgrel=0
pkgdesc="a keyboard handling library"
url="https://www.xkbcommon.org/"
arch="all"
license="MIT"
depends="xkeyboard-config"
depends_dev="libxkbcommon-x11=$pkgver-r$pkgrel"
makedepends="
	bison
	wayland-dev
	wayland-protocols
	libxcb-dev
	meson
	libxml2-dev
	"
checkdepends="bash"
subpackages="$pkgname-static $pkgname-dev $pkgname-x11 xkbcli xkbcli-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-$pkgver.tar.gz"
builddir="$srcdir/libxkbcommon-xkbcommon-$pkgver"

build() {
	abuild-meson \
		-Denable-wayland=true \
		-Denable-docs=false \
		-Denable-x11=true \
		-Ddefault_library=both \
		build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

check() {
	meson test --no-rebuild -v -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

x11() {
	pkgdesc="$pkgdesc (x11 support)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*x11*.so.* "$subpkgdir"/usr/lib
}

xkbcli() {
	pkgdesc="xkb command-line tool with interactive debugger"
	amove usr/bin/xkbcli
	amove usr/libexec/xkbcommon/xkbcli*
}

sha512sums="1372c9aee49a9ebc8d02a29b5560007ab7c4d0ceb60478968e69774403fda10683384729567b748b22349e37774b7636532ea100882b0f74853f60edc435f59a  libxkbcommon-1.0.1.tar.gz"