diff --git a/common/shlibs b/common/shlibs index 1b292c038a..4c7b1acd42 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/libsigrok-devel b/srcpkgs/libsigrok-devel new file mode 120000 index 0000000000..1980042823 --- /dev/null +++ b/srcpkgs/libsigrok-devel @@ -0,0 +1 @@ +libsigrok/ \ No newline at end of file diff --git a/srcpkgs/libsigrok/patches/replace_stringify_macro.patch b/srcpkgs/libsigrok/patches/replace_stringify_macro.patch new file mode 100644 index 0000000000..6172d11c4d --- /dev/null +++ b/srcpkgs/libsigrok/patches/replace_stringify_macro.patch @@ -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 */ diff --git a/srcpkgs/libsigrok/template b/srcpkgs/libsigrok/template new file mode 100644 index 0000000000..b31e7ee6b4 --- /dev/null +++ b/srcpkgs/libsigrok/template @@ -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 " +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" + } +}