aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-qtimageformats/APKBUILD
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-03-09 17:22:06 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-03-10 23:54:37 -0300
commit7b8a255cfa8e0f5c490a4a80cb11dba4270bf38e (patch)
tree885bd0180fec75239170751a6aeec995d1cec3a8 /community/qt5-qtimageformats/APKBUILD
parentdf112d4b721cff58773b4692ed8a848fa3054c20 (diff)
downloadaports-7b8a255cfa8e0f5c490a4a80cb11dba4270bf38e.tar.gz
aports-7b8a255cfa8e0f5c490a4a80cb11dba4270bf38e.tar.bz2
aports-7b8a255cfa8e0f5c490a4a80cb11dba4270bf38e.tar.xz
community/qt5-qtimageformats: take over maintainership
Also sync APKBUILD with other Qt packages
Diffstat (limited to 'community/qt5-qtimageformats/APKBUILD')
-rw-r--r--community/qt5-qtimageformats/APKBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/community/qt5-qtimageformats/APKBUILD b/community/qt5-qtimageformats/APKBUILD
index 53e3affa76..de297c534e 100644
--- a/community/qt5-qtimageformats/APKBUILD
+++ b/community/qt5-qtimageformats/APKBUILD
@@ -1,27 +1,24 @@
-# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtimageformats
pkgver=5.14.1
-_ver=${pkgver/_/-}
-_ver=${_ver/beta0/beta}
-_ver=${_ver/rc0/rc}
-_v=${_ver/rc/RC}
-pkgrel=0
+pkgrel=1
pkgdesc="Qt5 - QtImageFormats 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 libmng-dev tiff-dev libwebp-dev"
+builddir="$srcdir/qtimageformats-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/qtimageformats-everywhere-src-$_v.tar.xz"
-builddir="$srcdir"/qtimageformats-everywhere-src-${_v%-*}
+source="https://download.qt.io/$_rel/qt/${pkgver%.*}/$pkgver/submodules/qtimageformats-everywhere-src-$pkgver.tar.xz"
build() {
- qmake-qt5 && make
+ qmake-qt5
+ make
}
check() {
@@ -30,6 +27,13 @@ check() {
package() {
make install INSTALL_ROOT="$pkgdir"
+
+ # 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="843c8288a79506d4f2ac9e318f9478d689045bd0de1c2d9a529b060bd44dc7823561baef290bc54ed6cc756027f1dcdb8f706a2bd122ec9aec18848e5d316555 qtimageformats-everywhere-src-5.14.1.tar.xz"