aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-x11extras/APKBUILD
blob: ab0b6aa120359b23667cba82cbcd5377b836bd16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=qt5-x11extras
_pkgname=qtx11extras-opensource-src
pkgver=5.9.3
_ver=${pkgver/_p/-}
_ver=${_ver/_/-}
_ver=${_ver/beta0/beta}
_ver=${_ver/rc0/rc}
_V=${_ver/rc/RC}
pkgrel=0
pkgdesc="Provides platform-specific APIs for X11"
url="http://qt-project.org/"
arch="all"
license="GPL3"
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-dev"

case $pkgver in
*_beta*|*_rc*) _rel=development_releases;;
*) _rel=official_releases;;
esac
source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/$_pkgname-$_V.tar.xz"

builddir="$srcdir"/$_pkgname-${_V%-*}

prepare() {
	default_prepare
	cd "$builddir"
	mkdir -p build
}

build() {
	cd "$builddir"/build
	qmake-qt5 ..
	make
}

check() {
	cd "$builddir"/build
	make check
}

package() {
	cd "$builddir"/build
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="0d1547e25f5d051daa8b20f54ca146bc5a6ad6fdae2c9b9e90dae574840a350bc3ac82b05ddb93b7a544e689fc06e633e57a40f31475cd118e156fad78e91d6c  qtx11extras-opensource-src-5.9.3.tar.xz"