# Maintainer: Greg Erwin pkgname=libgpiod-git pkgver=r983.03a6c2f pkgrel=1 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=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') license=('LGPL2.1') depends=('linux-api-headers>=5.5') conflicts=('libgpiod') provides=('libgpiod') makedepends=('git' 'autoconf-archive' 'help2man' 'python-setuptools') source=('git://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git') sha1sums=('SKIP') pkgver() { cd "${pkgname%-git}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${pkgname%-git}" ./autogen.sh \ --enable-tools=yes \ --enable-bindings-cxx \ --enable-bindings-python \ --prefix=/usr make } package() { cd "${pkgname%-git}" sed -i s,--prefix='$(prefix)',--root="$pkgdir", bindings/python/Makefile.am make DESTDIR="$pkgdir/" install }