aboutsummaryrefslogtreecommitdiffstats
path: root/main/qt5-qtwebkit/APKBUILD
blob: cce6cd2833ae2680c1e37f8a6d53ffb994439ab3 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtwebkit
pkgver=5.4.1
pkgrel=1
pkgdesc="Qt5 - QtWebKit components"
url="http://qt-project.org/"
arch="all"
license="LGPLv2 with exceptions or GPLv3 with exceptions"
depends=""
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev gstreamer1-dev
	gst-plugins-base1-dev libxslt-dev mesa-dev icu-dev libxext-dev
	glib-dev libxcomposite-dev libxrender-dev
	"
makedepends="$depends_dev
	bison
	flex
	fontconfig-dev
	gperf
	libjpeg-turbo-dev
	libpng-dev
	libwebp-dev
	pcre-dev
	ruby
	sqlite-dev
	zlib-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/qtwebkit-opensource-src-$_V.tar.xz
	pic.patch
	fix-rpath.patch
	fix-execinfo.patch
	qtwebkit-opensource-src-5.4.0-mutexlocker.patch
	"

_builddir="$srcdir"/qtwebkit-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
	# remove some bundled
	mkdir Source/ThirdParty/orig
	mv Source/ThirdParty/gtest/ \
		Source/ThirdParty/qunit/ \
		Source/ThirdParty/orig/ \
		|| return 1
}

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

package() {
	cd "$_builddir"
	make install INSTALL_ROOT="$pkgdir" || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	# remove rpath
#	chrpath --delete "$pkgdir"/usr/lib/qt5/libexec/* || return 1
	sed -i -e 's:-L/home[^ ]\+::g' "$pkgdir"/usr/lib/pkgconfig/*.pc
}

md5sums="186627b1ea5b614811fbd0cfa9b4d073  qtwebkit-opensource-src-5.4.1.tar.xz
676350288efff119bee8513d9d0b2047  pic.patch
722c871b648adae302413159b12ada6b  fix-rpath.patch
7a2a2592e64561fa0bc8c0552181bf00  fix-execinfo.patch
b952e49286ff4fb101d6b78cc3ce419d  qtwebkit-opensource-src-5.4.0-mutexlocker.patch"
sha256sums="6607211ef8a913dc778617bf4ba0970e34cc71e1da3abb477eabe0035e7119bf  qtwebkit-opensource-src-5.4.1.tar.xz
51c0e843c5c6453526ee51ed69f2d4a7959767621da321f1082985dfe9f001ef  pic.patch
b3e52d54fae9588d908289b53dda6042b59ab133cd8c301f4de23c0ee8dc2c01  fix-rpath.patch
d8f6c84cf1a98174aa16660a422cd7b248a012e60bf37a9b5013f2bc61b6d63e  fix-execinfo.patch
70a8f46cf88c2086afdb8a3c1fdb820210aa0611f2c3fbeca6da275a0701e0c3  qtwebkit-opensource-src-5.4.0-mutexlocker.patch"
sha512sums="592a3ebccb4578eb0183d1ecd5aae69c7f03482aa09594fc06f58e2c2b82b5e916e1e951012fc1c8e0cea803c4d3e6db64fad41bbca70eb18b8d9d3ff2eab828  qtwebkit-opensource-src-5.4.1.tar.xz
9a62a5e7af91c44311b517608262f88b5bc607e75dc5878dd08b0a0872ec03fb7a566df0a41413f7e60beb1b9880e24f084b90c38ed50d4219ec2ad6af9bd62f  pic.patch
00d59c0cdb58ae8e7cf6bc3d03f133697e74c267ccebe12238bcdc274d4c90210b82c2d8bdf0e949cd43da13a4fd8a4c35fb54a00ed5102a4ac4d23aa002d0fe  fix-rpath.patch
f17c2f4b90090c8f12e4ba1f2cbd7a9f496c8de024ba6e0d55b98e5b89ab89298aff84f39e81905e0491fe6bd11544633a8b191403a866e16ed654d44cf8dc6f  fix-execinfo.patch
e9b798bfd991eaa7247a92703467c581ee497602e630e5840d4306501f0e1195ed8ae4d20a76e5721ddae22c75c94fce2f1a96e49beae6e8bc865ad762950632  qtwebkit-opensource-src-5.4.0-mutexlocker.patch"