APKBUILD 1.39 KB
Newer Older
1 2 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=qt5-qtlocation
4
_pkgname=${pkgname/qt5-//}-everywhere-src
5
pkgver=5.12.5
6 7 8
_ver=${pkgver/_/-}
_ver=${_ver/beta0/beta}
_ver=${_ver/rc0/rc}
9
_v=${_ver/rc/RC}
10
pkgrel=0
11 12
pkgdesc="Qt5 - Location component"
url="http://qt-project.org/"
13 14
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
15
options="!check" # upstream does not provide check
16
makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev icu-dev"
17 18 19 20 21 22
subpackages="$pkgname-dev"

case $pkgver in
*_beta*|*_rc*) _rel=development_releases;;
*) _rel=official_releases;;
esac
23
source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtlocation-everywhere-src-$_v.tar.xz
24
	fix-build.patch"
25

26
builddir="$srcdir/$_pkgname-${_v%-*}"
27 28 29

prepare() {
	default_prepare
30 31

	mkdir -p "$builddir"/build
32 33 34 35
}

build() {
	cd "$builddir"/build
36
	qmake-qt5 "CONFIG+=posix" ..
37 38 39 40 41 42 43
	make
}

package() {
	cd "$builddir"/build
	make INSTALL_ROOT="$pkgdir" install
}
44
sha512sums="fe82194e4e6bc2a2e6e3c55e3360afdfd56a6495a8d87bfbdceb29255430954d4c1adc62f1f82e63b23778f0bf03b0a50d6f5d2a963bd786f2cf2fbed7450ccc  qtlocation-everywhere-src-5.12.5.tar.xz
45
eb19b97909b64a82d75732872573b25c626c924aec93dbbe9b1b27fd72354149aa0c4e2d3727a5a2519a7bee39cb6af60761ad40e29b4e7adeb89a300a710505  fix-build.patch"