# Maintainer: Jesus E. pkgname=qt-serialport _pkgbasename=qtserialport _qtver=5.15.2 pkgver=${_qtver/-/} pkgrel=1 arch=('i686' 'x86_64') url='https://www.qt.io' license=('LGPL-3') pkgdesc='Provides access to hardware and virtual serial ports' depends=('qt-base') groups=('qt') _pkgfqn="${_pkgbasename/5-/}-everywhere-src-${_qtver}" source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") sha256sums=('59c559d748417306bc1b2cf2315c1e63eed011ace38ad92946af71f23e2ef79d') prepare() { mkdir -p build } build() { cd build qmake ../${_pkgfqn} make } package() { cd build 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 license install -D -m644 "${srcdir}"/${_pkgfqn}/LICENSE.LGPL3 "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.LGPL3 }