New package: libsigrok-0.4.0

This commit is contained in:
lemmi 2017-03-16 02:54:52 +01:00
parent e75539b0fc
commit 7c32da3785
4 changed files with 45 additions and 0 deletions

View File

@ -2819,3 +2819,5 @@ libmozjs-.so mozjs38-38.8.0_1
libostree-1.so.1 libostree-2017.3_1
librhash.so.0 rhash-1.3.4_1
libserialport.so.0 libserialport-0.1.1_1
libsigrok.so.3 libsigrok-0.4.0_1
libsigrokcxx.so.3 libsigrok-0.4.0_1

1
srcpkgs/libsigrok-devel Symbolic link
View File

@ -0,0 +1 @@
libsigrok/

View File

@ -0,0 +1,12 @@
--- src/hardware/beaglelogic/beaglelogic.h
+++ src/hardware/beaglelogic/beaglelogic.h
@@ -30,8 +30,7 @@
/* BeagleLogic device node name */
#define BEAGLELOGIC_DEV_NODE "/dev/beaglelogic"
-#define BEAGLELOGIC_SYSFS_ATTR(a) "/sys/devices/virtual/misc/beaglelogic/"\
- __STRING(a)
+#define BEAGLELOGIC_SYSFS_ATTR(a) "/sys/devices/virtual/misc/beaglelogic/" #a
/* Reproduced verbatim from beaglelogic.h in the kernel tree until the kernel
* module hits the mainline. Contains the ABI, so DO NOT TOUCH this section */

View File

@ -0,0 +1,30 @@
# Template file for 'libsigrok'
pkgname=libsigrok
version=0.4.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config doxygen python3"
_devicelibs="libserialport-devel libusb-devel libftdi1-devel"
case $XBPS_TARGET_MACHINE in
i686* | x86_64*) _devicelibs+=" libieee1284-devel";;
esac
makedepends="glib-devel libzip-devel glibmm-devel ${_devicelibs}"
short_desc="C library for talking to hardware"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-3"
homepage="https://sigrok.org/"
distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=5f291f3fee36e6dab1336f1c78596e50588831bc5ebd7cddc2a95fe8c71d669e
libsigrok-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${_devicelibs}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}