aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/qt5-qtxmlpatterns/APKBUILD
blob: ebcd8f28e67a3f833a295e3407361f06e658725e (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtxmlpatterns
pkgver=5.5.0
pkgrel=0
pkgdesc="Qt5 - QtXmlPatterns component"
url="http://qt-project.org/"
arch="all"
license="LGPLv2 with exceptions or GPLv3 with exceptions"
depends=""
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"

_ver=${pkgver/_/-}
_ver=${_ver/beta0/beta}
_ver=${_ver/rc0/rc}
_V=${_ver/rc/RC}
case $pkgver in
*_beta*|*_rc*) _rel=development_releases;;
*) _rel=official_releases;;
esac

source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtxmlpatterns-opensource-src-$_V.tar.xz"

_builddir="$srcdir"/qtxmlpatterns-opensource-src-$_V
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	qmake-qt5 && make || return 1
}

package() {
	cd "$_builddir"
	make install INSTALL_ROOT="$pkgdir" || return 1
}

md5sums="138ab73b2376fcfca92a4bb6ab47e4a4  qtxmlpatterns-opensource-src-5.5.0.tar.xz"
sha256sums="672882c670c13c5caec199173cdabffd38474d06979d261bdc6e19738e0cef53  qtxmlpatterns-opensource-src-5.5.0.tar.xz"
sha512sums="793a196831b1862c9f79f4d143938b3f80e6e13ebe0fa7fa3532dbaede376365632864f89cfb819c62c573a51cae4b427934436df209895444b8d4feea09621b  qtxmlpatterns-opensource-src-5.5.0.tar.xz"