APKBUILD 1.51 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtdeclarative
3
_pkgname=${pkgname/qt5-//}-everywhere-src
4
pkgver=5.12.5
5 6
_ver=${pkgver/_p/-}
_ver=${_ver/_/-}
7
_ver=${_ver/beta0/beta}
8
_ver=${_ver/rc0/rc}
9 10
_v=${_ver/rc/RC}
pkgrel=1
11 12
pkgdesc="Qt5 - QtDeclarative component"
url="http://qt-project.org/"
13 14
arch="all !armhf" # Broken on armhf, upstream bug report https://bugreports.qt.io/browse/QTBUG-65246
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
15
makedepends="qt5-qtbase-dev python3"
16 17
subpackages="$pkgname-dev"

18
case $pkgver in
19
*_beta*|*_rc*) _rel=development_releases;;
20 21
*) _rel=official_releases;;
esac
22
source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/$_pkgname-$_v.tar.xz
23 24
	qt-musl-stackbottom.patch
	"
25

26
_qt5_prefix=/usr/lib/qt5
27
builddir="$srcdir/$_pkgname-${_v%-*}"
28

29
build() {
30 31 32 33
	# HACK so calls to "python" get what we want
	ln -s /usr/bin/python3 python
	export PATH="$(pwd):$PATH"

34
	qmake-qt5 && make
35 36
}

37 38
check() {
	make check
39 40 41
}

package() {
42
	make install INSTALL_ROOT="$pkgdir"
43

44
	mkdir -p "$pkgdir"/usr/bin/
45
	for i in "$pkgdir"/"$_qt5_prefix"/bin/*; do
46
		ln -s ../lib/qt5/bin/${i##*/} "$pkgdir"/usr/bin/${i##*/}-qt5
47
	done
48 49
}

50
sha512sums="026c5024c06e44b6e91099d1ee912f38017f314ae0125227010d25d733447c692299cc7c47edc1a4bf39366a9c9c9fe77d3a249905f2ae982d0725317d824b9b  qtdeclarative-everywhere-src-5.12.5.tar.xz
51
235091cc1da51c31165a99932c95543d999c0f21b2c6b4318306b647662d420f88d7270ec21db7417fe9f8d87bfa3e5f01b6465c3542da024dd1623ef0a87681  qt-musl-stackbottom.patch"