libgpiod: build from release tarball, add dev docs
This commit is contained in:
parent
61560e1829
commit
511d705ad5
|
@ -1,24 +1,23 @@
|
|||
# Template file for 'libgpiod'
|
||||
pkgname=libgpiod
|
||||
version=2.2
|
||||
revision=1
|
||||
revision=2
|
||||
build_style="gnu-configure"
|
||||
build_helper="python3"
|
||||
configure_args="--prefix=/usr --enable-tools=yes --enable-bindings-cxx
|
||||
--enable-bindings-python --enable-gpioset-interactive"
|
||||
hostmakedepends="autoconf automake autoconf-archive doxygen libtool
|
||||
pkg-config python3-build python3-pip"
|
||||
hostmakedepends="doxygen pkg-config python3-build python3-pip"
|
||||
makedepends="libedit-devel python3-devel"
|
||||
short_desc="C library for interacting with the linux GPIO character device"
|
||||
short_desc="Library for interacting with the linux GPIO character device"
|
||||
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
|
||||
license="Apache-2.0, BSD-3-Clause, CC-BY-SA-4.0, CC0-1.0, GPL-2.0-only, GPL-2.0-or-later,
|
||||
LGPL-2.1-or-later, custom:Linux-syscall-note"
|
||||
homepage="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git"
|
||||
distfiles="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-${version}.tar.gz"
|
||||
checksum=ae35329db7027c740e90c883baf27c26311f0614e6a7b115771b28188b992aec
|
||||
distfiles="https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/libgpiod-${version}.tar.gz"
|
||||
checksum=f89c2176250f1a9563265479eb8ad5f22a63f42db6a1f438effc570f0254d2f5
|
||||
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
post_build() {
|
||||
make doc
|
||||
}
|
||||
|
||||
post_install() {
|
||||
|
@ -34,6 +33,11 @@ libgpiod-devel_package() {
|
|||
vmove "usr/lib/*.a"
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/lib/pkgconfig
|
||||
for f in doc/man/man3/*.3 ; do
|
||||
vman "$f"
|
||||
done
|
||||
vmkdir "usr/share/doc/${sourcepkg}"
|
||||
vcopy "${wrksrc}/doc/html" "usr/share/doc/${sourcepkg}"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue