From c1170d04fd8a37373d7bc25dd147175a49fd5c16 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.2 --- srcpkgs/libgpiod-devel | 1 + srcpkgs/libgpiod-python3 | 1 + srcpkgs/libgpiod-tools | 1 + srcpkgs/libgpiod/template | 52 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 120000 srcpkgs/libgpiod-devel create mode 120000 srcpkgs/libgpiod-python3 create mode 120000 srcpkgs/libgpiod-tools create mode 100644 srcpkgs/libgpiod/template diff --git a/srcpkgs/libgpiod-devel b/srcpkgs/libgpiod-devel new file mode 120000 index 00000000000..79aeec1f099 --- /dev/null +++ b/srcpkgs/libgpiod-devel @@ -0,0 +1 @@ +libgpiod \ No newline at end of file diff --git a/srcpkgs/libgpiod-python3 b/srcpkgs/libgpiod-python3 new file mode 120000 index 00000000000..79aeec1f099 --- /dev/null +++ b/srcpkgs/libgpiod-python3 @@ -0,0 +1 @@ +libgpiod \ No newline at end of file diff --git a/srcpkgs/libgpiod-tools b/srcpkgs/libgpiod-tools new file mode 120000 index 00000000000..79aeec1f099 --- /dev/null +++ b/srcpkgs/libgpiod-tools @@ -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 00000000000..708521ec8d8 --- /dev/null +++ b/srcpkgs/libgpiod/template @@ -0,0 +1,52 @@ +# Template file for 'libgpiod' +pkgname=libgpiod +version=2.2 +revision=1 +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" +makedepends="libedit-devel python3-devel" +short_desc="C 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 + +pre_configure() { + autoreconf -fi +} + +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/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +} + +libgpiod-python3_package() { + short_desc+=" - python bindings" + pkg_install() { + vmove "usr/lib/python3*" + } +} + +libgpiod-tools_package() { + short_desc+=" - utilities" + pkg_install() { + vmove usr/bin + } +}