From 511d705ad5b1030bd7b69b78df7ef228f320f4e5 Mon Sep 17 00:00:00 2001 From: Piraty Date: Fri, 15 Nov 2024 22:57:31 +0100 Subject: [PATCH] libgpiod: build from release tarball, add dev docs --- srcpkgs/libgpiod/template | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/srcpkgs/libgpiod/template b/srcpkgs/libgpiod/template index 708521ec8d8..13bf62ca546 100644 --- a/srcpkgs/libgpiod/template +++ b/srcpkgs/libgpiod/template @@ -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 " 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}" } }