From a086d307114bec405b7e17baf29d415d41b6aa88 Mon Sep 17 00:00:00 2001 From: Tim Sandquist Date: Thu, 29 Aug 2024 07:45:47 -0500 Subject: [PATCH] New package: libgpiod-2.1.3 --- srcpkgs/libgpiod-devel | 1 + srcpkgs/libgpiod/template | 40 +++++++++++++++++++++++++++++++++++++++ srcpkgs/python3-libgpiod | 1 + 3 files changed, 42 insertions(+) create mode 120000 srcpkgs/libgpiod-devel create mode 100644 srcpkgs/libgpiod/template create mode 120000 srcpkgs/python3-libgpiod diff --git a/srcpkgs/libgpiod-devel b/srcpkgs/libgpiod-devel new file mode 120000 index 00000000000000..79aeec1f099c08 --- /dev/null +++ b/srcpkgs/libgpiod-devel @@ -0,0 +1 @@ +libgpiod \ No newline at end of file diff --git a/srcpkgs/libgpiod/template b/srcpkgs/libgpiod/template new file mode 100644 index 00000000000000..32a9b4e99e32bc --- /dev/null +++ b/srcpkgs/libgpiod/template @@ -0,0 +1,40 @@ +# Template file for 'libgpiod' +pkgname=libgpiod +version=2.1.3 +revision=1 +# Cross compiling the python extension on some armvXX archs fails +archs="~armv*" +build_style=gnu-configure +configure_script="./autogen.sh" +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-devel python3-setuptools" +makedepends="libedit-devel" +short_desc="C library and tools 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="${homepage}/snapshot/libgpiod-${version}.tar.gz" +checksum=8d80ea022ae78122aa525308e7423b83064bff278fcd9cd045b94b4f81f8057d + +post_install() { + vlicense LICENSES/BSD-3-Clause.txt + vlicense LICENSES/Linux-syscall-note.txt +} + +libgpiod-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/lib* + vmove usr/lib/pkgconfig + } +} + +python3-libgpiod_package() { + short_desc+=" - Python binding" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-libgpiod b/srcpkgs/python3-libgpiod new file mode 120000 index 00000000000000..79aeec1f099c08 --- /dev/null +++ b/srcpkgs/python3-libgpiod @@ -0,0 +1 @@ +libgpiod \ No newline at end of file