aboutsummaryrefslogblamecommitdiffstats
path: root/community/libinput/APKBUILD
blob: 2226af4c5526a586576c2e8ff598846fe9d78c1f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
                                                              
                                                   
                
             
        
                                            
                                                        
          
             

                                                                                
                             



                     
                                     
                      
                               
         
                               
                                                                          
 
         
                      

                                       
                                  
                                       
                                                      

 
         
                                              

 
           
                                                                

 







                                                              












                                                                               






                                                            
            
                                                                                                                                                        
 
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=libinput
pkgver=1.19.3
pkgrel=0
pkgdesc="Library for handling input devices"
url="https://www.freedesktop.org/wiki/Software/libinput"
arch="all"
license="MIT"
_depends_tools="python3 py3-libevdev py3-udev py3-yaml"
makedepends="eudev-dev gtk+3.0-dev libevdev-dev meson mtdev-dev $_depends_tools"
checkdepends="diffutils bash"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-libs
	$pkgname-debug-gui:_debug_gui
	$pkgname-tools
	$pkgname-zsh-completion
	"
install="$pkgname.post-upgrade"
source="https://freedesktop.org/software/libinput/libinput-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Ddocumentation=false \
		-Dlibwacom=false \
		-Ddebug-gui=true \
		-Dtests=false builddir/
	meson compile ${JOBS:+-j ${JOBS}} -C builddir/
}

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

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

libs() {
	default_libs

	mv "$pkgdir"/usr/lib/udev "$subpkgdir"/usr/lib
	mkdir -p "$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/share/libinput "$subpkgdir"/usr/share
}

tools() {
	pkgdesc="CLI helper tools for debugging libinput"
	depends="$pkgname=$pkgver-r$pkgrel $_depends_tools"

	# Q: Maybe move all tools (even libinput-list-devices, libinput-quirks)
	#    into -tools? (jirutka)
	amove usr/libexec/libinput/libinput-analyze*
	amove usr/libexec/libinput/libinput-debug*
	amove usr/libexec/libinput/libinput-measure*
	amove usr/libexec/libinput/libinput-record
	amove usr/libexec/libinput/libinput-replay
}

_debug_gui() {
	pkgdesc="GTK-based visual debug helper for libinput"
	depends=""

	amove usr/libexec/libinput/libinput-debug-gui
}

sha512sums="
f4b776d0da78c687ba21b430a04941ac6b43f68970c82ec9f7360358fdea5ed6a873948ce66a25bcdd64d4b95fa4bf705cc24dbc25c7c0f5fd2d0efbd763f298  libinput-1.19.3.tar.xz
"