mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 11:21:17 +02:00
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=qt5-qtwayland
|
|
_pkgname="${pkgname/qt5-/}-everywhere-src"
|
|
pkgver=5.12.1
|
|
pkgrel=1
|
|
arch="all"
|
|
url="http://qt-project.org/"
|
|
license="LGPL-2.0 with exceptions or GPL-3.0 with exceptions"
|
|
pkgdesc='Provides APIs for Wayland'
|
|
makedepends="$depends_dev libxkbcommon-dev libxcomposite-dev
|
|
qt5-qtquickcontrols2-dev qt5-qtdeclarative-dev qt5-qtbase-dev wayland-dev"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
case $pkgver in
|
|
*_beta*|*_rc*) _rel=development_releases;;
|
|
*) _rel=official_releases;;
|
|
esac
|
|
|
|
source="http://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver}/submodules/$_pkgname-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
qmake-qt5
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
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="8f7dc79c2ac2cb91044ce2633d76b0dbcb586b48da5233d8d8d40056b6df448aca1f3b18e91156f050a87d4c6c54494c4ba3ebe573fa609dc1772c5427e79f43 qtwayland-everywhere-src-5.12.1.tar.xz"
|