# Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=mtdev pkgver=1.1.6 pkgrel=0 pkgdesc="Multitouch Protocol Translation Library" url="http://bitmath.org/code/mtdev/" arch="all" license="MIT" depends="" depends_dev="linux-headers" makedepends="$depends_dev" subpackages="$pkgname-dev" source="http://bitmath.org/code/mtdev/mtdev-$pkgver.tar.gz printf-format.patch " prepare() { default_prepare update_config_sub } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var make } check() { make check } package() { make DESTDIR="$pkgdir" install } dev() { default_dev mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } sha512sums="e643264baa880abfc31b53f8e8ed54fe1adea4bc110fab57d36be16caba84f970c09fc864244c64b0a76e85f5f021fd086c12f96badbd886da6ccf254ab678e9 mtdev-1.1.6.tar.gz 5a429ab3f7773e86eafb5beaff466ca6e209a131bfc1fd633e3ba4bfdf92caadf5037a3e84efb512bdc12891b2cc44ebb61b826daf3e66a7735004cc1dcd2713 printf-format.patch"