aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt5-qtscript/APKBUILD
blob: e5b6064c2fedc94105cad0120672255ba331b100 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtscript
pkgver=5.2.1
pkgrel=0
pkgdesc="Qt5 - QtScript 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"
source="http://download.qt-project.org/official_releases/qt/${pkgver%.*}/$pkgver/submodules/qtscript-opensource-src-$pkgver.tar.xz"

_builddir="$srcdir"/qtscript-opensource-src-$pkgver
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 && make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="b8af09bb297d4c62e64df5418fe99dc9  qtscript-opensource-src-5.2.1.tar.xz"
sha256sums="6621350d5eff65cb6f9853247246f30a2d4cdb465c14923ff7ccbd8c3a9cdefa  qtscript-opensource-src-5.2.1.tar.xz"
sha512sums="8b8e819a07ce0be9ebcfe02953d4f74f770085de28fb27c8881beb25056423565534ac325616e684157e655c91f18534a93a5b1f26af358b721dcef7419640ad  qtscript-opensource-src-5.2.1.tar.xz"