Date: Sunday, October 2, 2022 @ 17:38:16
  Author: felixonmars
Revision: 1320686

addpkg: libgpiod 1.6.3-2

Added:
  libgpiod/
  libgpiod/repos/
  libgpiod/trunk/
  libgpiod/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Added: libgpiod/trunk/PKGBUILD
===================================================================
--- libgpiod/trunk/PKGBUILD                             (rev 0)
+++ libgpiod/trunk/PKGBUILD     2022-10-02 17:38:16 UTC (rev 1320686)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Greg Erwin <first name last name 256 at gmail dot com>
+
+pkgname=libgpiod
+pkgver=1.6.3
+pkgrel=2
+pkgdesc="C library and tools for interacting with the linux GPIO character 
device"
+url="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git";
+arch=('x86_64')
+license=('LGPL2.1')
+depends=('python')
+makedepends=('autoconf-archive' 'doxygen' 'help2man')
+conflicts=('libgpiod-git')
+source=("$url/snapshot/$pkgname-$pkgver.tar.gz")
+sha256sums=('eb446070be1444fd7d32d32bbca53c2f3bbb0a21193db86198cf6050b7a28441')
+
+build() {
+  cd $pkgname-$pkgver
+  ./autogen.sh \
+    --prefix=/usr \
+    --enable-tools=yes \
+    --enable-bindings-cxx \
+    --enable-bindings-python
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}

Reply via email to