blob: 8b95e948a7920c0b8cd50a32e472fff97185c015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Contributor: vinymeuh <vinymeuh@gmail.com>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=libgpiod
pkgver=1.4.2
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="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="1c60bea50bb0e940273d90a122713b2693dbd5305afe313fad804b46add56b20d268f9903acca166b35f625e67b1bd05d05c9c995075937c96b22fb92655062a libgpiod-1.4.2.tar.gz"
|