aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-qtx11extras/APKBUILD
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-03-10 09:42:01 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-03-10 23:54:37 -0300
commitc54fc5baa11b4ab008fde9536f3ecf90d2b3273a (patch)
treedaafb34f2910210f8558e769330ad917ddb33d6a /community/qt5-qtx11extras/APKBUILD
parent4e1ce1e7d6dcc80085f18282250516a9937c90d7 (diff)
downloadaports-c54fc5baa11b4ab008fde9536f3ecf90d2b3273a.tar.gz
aports-c54fc5baa11b4ab008fde9536f3ecf90d2b3273a.tar.bz2
aports-c54fc5baa11b4ab008fde9536f3ecf90d2b3273a.tar.xz
community/qt5-qtx11extras: take over maintainership
Also sync APKBUILD with other Qt packages
Diffstat (limited to 'community/qt5-qtx11extras/APKBUILD')
-rw-r--r--community/qt5-qtx11extras/APKBUILD35
1 files changed, 14 insertions, 21 deletions
diff --git a/community/qt5-qtx11extras/APKBUILD b/community/qt5-qtx11extras/APKBUILD
index 42fbae8d69..616fba3a4a 100644
--- a/community/qt5-qtx11extras/APKBUILD
+++ b/community/qt5-qtx11extras/APKBUILD
@@ -1,13 +1,8 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtx11extras
pkgver=5.14.1
-_ver=${pkgver/_p/-}
-_ver=${_ver/_/-}
-_ver=${_ver/beta0/beta}
-_ver=${_ver/rc0/rc}
-_v=${_ver/rc/RC}
-pkgrel=0
+pkgrel=1
pkgdesc="Provides platform-specific APIs for X11"
url="https://www.qt.io/developers/"
arch="all"
@@ -15,35 +10,33 @@ license="(LGPL-3.0-or-later OR GPL-3.0-only OR GPL-2.0-or-later) AND Qt-GPL-exce
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-dev"
replaces="qt5-x11extras"
+builddir="$srcdir/qtx11extras-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/qtx11extras-everywhere-src-$_v.tar.xz"
-builddir="$srcdir"/qtx11extras-everywhere-src-${_v%-*}
-
-prepare() {
- default_prepare
-
- mkdir -p build
-}
+source="https://download.qt.io/$_rel/qt/${pkgver%.*}/$pkgver/submodules/qtx11extras-everywhere-src-$pkgver.tar.xz"
build() {
- cd "$builddir"/build
- qmake-qt5 ..
+ qmake-qt5
make
}
check() {
- cd "$builddir"/build
make check
}
package() {
- cd "$builddir"/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 -d "$pkgdir"/usr/share/licenses
+ ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
}
sha512sums="e88c9e0440c5d12003d74182dab5e63f0c65ced93447b5c3cabccd1c8c96e9b8e38fce327e678a433af18d2af683bb4f939dbc3e7bea2e911eeeb71ebe70c058 qtx11extras-everywhere-src-5.14.1.tar.xz"