aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt5-qtusb/APKBUILD
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2020-03-11 12:54:26 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-03-11 11:23:00 -0300
commitf0fd88f0218a6b61c8768a7cde6f817653152948 (patch)
treee7fd3730c79be1883a07ed241439c47a9780dd60 /testing/qt5-qtusb/APKBUILD
parent16c9cc9f777ed7ce83378fe4d3634be982d1323d (diff)
downloadaports-f0fd88f0218a6b61c8768a7cde6f817653152948.tar.gz
aports-f0fd88f0218a6b61c8768a7cde6f817653152948.tar.bz2
aports-f0fd88f0218a6b61c8768a7cde6f817653152948.tar.xz
testing/qt5-qtusb: new aport
Diffstat (limited to 'testing/qt5-qtusb/APKBUILD')
-rw-r--r--testing/qt5-qtusb/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/qt5-qtusb/APKBUILD b/testing/qt5-qtusb/APKBUILD
new file mode 100644
index 0000000000..4d5f3b66eb
--- /dev/null
+++ b/testing/qt5-qtusb/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: TBK <alpine@jjtc.eu>
+# Maintainer: TBK <alpine@jjtc.eu>
+pkgname=qt5-qtusb
+pkgver=0.6.0
+pkgrel=0
+pkgdesc="Qt5 - a cross-platform USB Module for Qt."
+url="https://github.com/fpoussin/QtUsb/"
+arch="all"
+license="LGPL-3.0-only"
+options="!check" # at the moment "make install" is needed for it to work
+makedepends="hidapi-dev libusb-dev qt5-qtbase-dev"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/fpoussin/QtUsb/archive/$pkgver.tar.gz"
+builddir="$srcdir/QtUsb-$pkgver"
+
+build() {
+ qmake-qt5
+ make
+}
+
+check() {
+ cd tests
+ qmake-qt5
+ make -i check TESTARGS="-o result.xml,xunitxml"
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir" install
+}
+
+sha512sums="ab0a69a0b1fc0d9c7a1c8bc0002531e9c210b3d73e54758b9a6d1ea1f8c001c455e7a0d750ab7fc234bee9c1d2dc6e3a27bec48fd669f730e5e8379f3b1a90ff qt5-qtusb-0.6.0.tar.gz"