# Contributor: vinymeuh # Maintainer: Luca Weiss pkgname=libgpiod pkgver=1.6.2 pkgrel=0 pkgdesc="C library and tools for interacting with the linux GPIO character device" url="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/" arch="all" license="LGPL-2.1-or-later" options="!check" # no test suite makedepends="autoconf automake libtool linux-headers autoconf-archive python3-dev doxygen help2man" subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py3" source="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-$pkgver.tar.gz" prepare() { default_prepare autoreconf -vfi } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-tools=yes \ --disable-static \ --enable-bindings-python make } package() { make DESTDIR="$pkgdir" install } _py3() { pkgdesc="Python bindings for libgpiod" depends="python3" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } sha512sums="e7f04d91dcbb99781202a7f3290ccfafc422a9e76379ed3305781688e4014175fe6b7e69350a615d9df95d5dde922b45f12c60d8bdaf7f8251d30af1f5660592 libgpiod-1.6.2.tar.gz"