# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=tslib
pkgver=1.23
pkgrel=0
pkgdesc="Touchscreen Access Library"
arch="all"
url="https://github.com/libts/tslib"
license="LGPL-2.0-or-later"
makedepends="autoconf automake libtool linux-headers"
source="https://github.com/libts/tslib/releases/download/$pkgver/tslib-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure --prefix=/usr --sysconfdir=/etc
	make
}

check() {
	make check
}

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

sha512sums="
0fbd8e859fe7c24410a1436d3e12f618775e8594dc720ff98d12c8e8cef1ad07a36eb6f5911b2c4d976cc32ab75dd8988bd814379e1b7d8d35d88d7cf2b44dd1  tslib-1.23.tar.xz
"
