From 85b3c03f73be097b0a34ae200a8a0afd73e1ac7d Mon Sep 17 00:00:00 2001 From: "yd.zhang" Date: Fri, 4 Jun 2021 18:07:00 +0800 Subject: [PATCH] New package: libgpiod-1.6.3 --- common/shlibs | 1 + srcpkgs/libgpiod-devel | 1 + srcpkgs/libgpiod-tools | 1 + srcpkgs/libgpiod/template | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 120000 srcpkgs/libgpiod-devel create mode 120000 srcpkgs/libgpiod-tools create mode 100644 srcpkgs/libgpiod/template diff --git a/common/shlibs b/common/shlibs index ba589537b1f3..c7de2f66b8e0 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4007,3 +4007,4 @@ libbasu.so.0 basu-0.2.0_1 libXcomp.so.3 nx-libs-3.5.99.24_1 libXcompshad.so.3 nx-libs-3.5.99.24_1 libNX_X11.so.6 nx-libs-3.5.99.24_1 +libgpiod.so.2 libgpiod-1.6.3_1 diff --git a/srcpkgs/libgpiod-devel b/srcpkgs/libgpiod-devel new file mode 120000 index 000000000000..79aeec1f099c --- /dev/null +++ b/srcpkgs/libgpiod-devel @@ -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 000000000000..79aeec1f099c --- /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 000000000000..a66faaea48b1 --- /dev/null +++ b/srcpkgs/libgpiod/template @@ -0,0 +1,39 @@ +# Template file for 'libgpiod' +pkgname=libgpiod +version=1.6.3 +revision=1 +build_style=gnu-configure +configure_args="--disable-static --enable-tools --disable-tests --disable-bindings-cxx --disable-bindings-python" +hostmakedepends="automake autoconf-archive libtool pkg-config help2man" +short_desc="C library and tools for interacting with the linux GPIO character device" +maintainer="yd.zhang " +license="GPL-2.0-or-later" +homepage="https://git.kernel.org/pub/scm/libs/${pkgname}/${pkgname}.git" +distfiles="${homepage}/snapshot/${pkgname}-${version}.tar.gz" +checksum=eb446070be1444fd7d32d32bbca53c2f3bbb0a21193db86198cf6050b7a28441 + +pre_configure() { + NOCONFIGURE=1 ./autogen.sh +} + +post_install() { + vlicense COPYING +} + +libgpiod-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}-${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +} + +libgpiod-tools_package() { + short_desc+=" - tools" + pkg_install() { + vmove usr/bin + vmove usr/share/ + } +}