mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-13 04:37:03 +02:00
52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# 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 <tim.sandquist@gmail.com>"
|
|
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
|
|
}
|
|
}
|