Patches for aports can be sent to this list

1

[alpine-aports] [PATCH 5/6] testing/pulseview: New aport

Marian Buschsieweke
Details
Message ID
<20190404165559.6565-5-marian.buschsieweke@ovgu.de>
Sender timestamp
1554396958
DKIM signature
missing
Download raw message
Patch: +40 -0
A QT-based GUI frontend for sigrok
https://sigrok.org/wiki/PulseView
---
 testing/pulseview/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 testing/pulseview/APKBUILD

diff --git a/testing/pulseview/APKBUILD b/testing/pulseview/APKBUILD
new file mode 100644
index 0000000000..e8b4f961ef
--- /dev/null
+++ b/testing/pulseview/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
+
+pkgname="pulseview"
+pkgver=0.4.1
+pkgrel=0
+pkgdesc="A QT-based GUI frontend for sigrok"
+url="https://sigrok.org/wiki/PulseView"
+makedepends="libserialport-dev libsigrok-dev libsigrokdecode-dev glibmm-dev
+             qt5-qtbase-dev qt5-qtsvg-dev boost-dev cmake"
+# Without qt5-qtsvg some icons in the GUI are missing
+depends="qt5-qtsvg"
+arch="all"
+license="GPL-3.0-only"
+source="http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz"
+subpackages="$pkgname-doc"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "${builddir}"
+	cmake . -DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_BINDIR=/usr/bin \
+		-DCMAKE_INSTALL_SBINDIR=/usr/sbin \
+		-DCMAKE_INSTALL_SYSCONFDIR=/etc/hiawatha \
+		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
+		-DCMAKE_INSTALL_MANDIR=/usr/share/man \
+		-DENABLE_TESTS=y \
+		-DENABLE_DECODE=y
+	make
+}
+
+check() {
+	make test
+}
+
+package() {
+	cd "${builddir}"
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="0bae4357be312bf6e997885270887a5bcc0a8dfb6914e63bb0d5abb35389b6681748e0e4667556ad432c5432c861185bcdd8da7815fb570fc8a2fbbf5eed3801  pulseview-0.4.1.tar.gz"
-- 
2.21.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Milan P. Stanić
Details
Message ID
<20190601123540.GA16853@arya.arvanta.net>
In-Reply-To
<20190404165559.6565-5-marian.buschsieweke@ovgu.de> (view parent)
Sender timestamp
1559392540
DKIM signature
missing
Download raw message
Hi,

On Thu, 2019-04-04 at 18:55, Marian Buschsieweke wrote:
> A QT-based GUI frontend for sigrok
> https://sigrok.org/wiki/PulseView
...
> +makedepends="libserialport-dev libsigrok-dev libsigrokdecode-dev glibmm-dev
> +             qt5-qtbase-dev qt5-qtsvg-dev boost-dev cmake"
> +# Without qt5-qtsvg some icons in the GUI are missing
> +depends="qt5-qtsvg"
> +arch="all"
> +license="GPL-3.0-only"
> +source="http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz"
> +subpackages="$pkgname-doc"
> +builddir="$srcdir/$pkgname-$pkgver"
> +
> +build() {
> +	cd "${builddir}"

Small note: braces ({}) around variables should not be used without
reason. It is some kind of unwritten policy, for now at least.

> +	cmake . -DCMAKE_INSTALL_PREFIX=/usr \
> +		-DCMAKE_INSTALL_BINDIR=/usr/bin \
> +		-DCMAKE_INSTALL_SBINDIR=/usr/sbin \
> +		-DCMAKE_INSTALL_SYSCONFDIR=/etc/hiawatha \
> +		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
> +		-DCMAKE_INSTALL_MANDIR=/usr/share/man \
> +		-DENABLE_TESTS=y \
> +		-DENABLE_DECODE=y
> +	make
...

Tried build package but I've got next message:
---
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.1")
CMake Error at CMakeLists.txt:92 (message):
  libsigrok C++ bindings missing, check libsigrok's 'configure' output
  (missing dependencies?)


-- Configuring incomplete, errors occurred!
See also
"/home/mps/aports/testing/pulseview/src/pulseview-0.4.1/CMakeFiles/CMakeOutput.log".
>>> ERROR: pulseview: build failed
>>> pulseview: Uninstalling dependencies...
(1/181) Purging .makedepends-pulseview (0)
(2/181) Purging libsigrok-dev (0.5.1-r0)
---

Please, look at the issue and resend if it works for you.

-- 
regards


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---