# Contributor: Denis Ryabyy # Maintainer: Bart Ribbers pkgname=qt5-qtserialport pkgver=5.15.6_git20220816 pkgrel=0 _commit="c9abfcd5d88cb43c2a7c1d5ddecbff4cdd320694" pkgdesc="Qt5 - QtSerialPort module" url="https://wiki.qt.io/QtSerialPort" arch="all" license="(LGPL-2.0-or-later OR GPL-3.0-only OR GPL-2.0-or-later) AND Qt-GPL-exception-1.0" makedepends=" eudev-dev qt5-qtbase-dev " subpackages="$pkgname-dev" builddir="$srcdir/qtserialport-$_commit" case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://invent.kde.org/qt/qt/qtserialport/-/archive/$_commit/qtserialport-$_commit.tar.gz" prepare() { default_prepare # We need to make the build system think we're running in a git repository # so it correctly symlinks during the build mkdir .git } build() { qmake-qt5 make } check() { make check } package() { make INSTALL_ROOT="$pkgdir" install # Drop QMAKE_PRL_BUILD_DIR because reference the build dir find "$pkgdir/usr/lib" -type f -name '*.prl' \ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; install -d "$pkgdir"/usr/share/licenses ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname } sha512sums=" a2e36e83ea683cbf1e304370cca7d136555ecc3bcd66741a5daa4bcbd0abeecbec766fba8af7fc3a8524ca1b6b595f3f6975f2e11d35ddd1c1b9d6a0a995fd93 qtserialport-c9abfcd5d88cb43c2a7c1d5ddecbff4cdd320694.tar.gz "