From ae7ec387c1788c3f5203021afa71d34659ed6d17 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Mon, 9 Mar 2020 17:37:25 +0100 Subject: community/qt5-qtscript: take over maintainership Also sync APKBUILD with other Qt packages --- community/qt5-qtscript/APKBUILD | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'community/qt5-qtscript') diff --git a/community/qt5-qtscript/APKBUILD b/community/qt5-qtscript/APKBUILD index 02fcaddada..73c454ba69 100644 --- a/community/qt5-qtscript/APKBUILD +++ b/community/qt5-qtscript/APKBUILD @@ -1,31 +1,28 @@ -# Maintainer: Natanael Copa +# Maintainer: Bart Ribbers pkgname=qt5-qtscript pkgver=5.14.1 -_ver=${pkgver/_/-} -_ver=${_ver/beta0/beta} -_ver=${_ver/rc0/rc} -_v=${_ver/rc/RC} -pkgrel=0 +pkgrel=1 pkgdesc="Qt5 - QtScript component" url="https://www.qt.io/developers/" 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="qt5-qtbase-dev linux-headers" subpackages="$pkgname-dev" +builddir="$srcdir/qtscript-everywhere-src-$pkgver" case $pkgver in -*_beta*|*_rc*) _rel=development_releases;; -*) _rel=official_releases;; + *_beta*|*_rc*) _rel=development_releases;; + *) _rel=official_releases;; esac -source="https://download.qt.io/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtscript-everywhere-src-$_v.tar.xz +source="https://download.qt.io/$_rel/qt/${pkgver%.*}/$pkgver/submodules/qtscript-everywhere-src-$pkgver.tar.xz qtscript-everywhere-src-5.10.1-sgidefs.patch qtscript-s390x.patch " -builddir="$srcdir"/qtscript-everywhere-src-${_v%-*} build() { - qmake-qt5 && make + qmake-qt5 + make } check() { @@ -34,6 +31,13 @@ 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="9f4fbb038319c93c03117f61380fc6d1064191f0b738de054c2cee2055e7ddbb06ce3d01855b22dc2284858569b4aebb4e838ac0c7432e123421d64909c1d8a4 qtscript-everywhere-src-5.14.1.tar.xz -- cgit v1.2.3