summaryrefslogtreecommitdiffstats
path: root/testing/qt5-qtsvg/APKBUILD
blob: c3d60a3679b9b624ddf1bc6ca8e6b31aa887ce8b (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
# Contributor:
# Maintainer:
pkgname=qt5-qtsvg
pkgver=5.1.1
pkgrel=0
pkgdesc="Qt5 - Support for rendering and displaying SVG"
url="http://qt-project.org/"
arch="all"
license="LGPLv2 with exceptions or GPLv3 with exceptions"
depends=""
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev zlib-dev"
install=""
subpackages="$pkgname-dev"
source="http://download.qt-project.org/official_releases/qt/5.1/$pkgver/submodules/qtsvg-opensource-src-$pkgver.tar.xz"

_builddir="$srcdir"/qtsvg-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 INSTALL_ROOT="$pkgdir" || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="9db8209602b0ea942273e01a874ea5b7  qtsvg-opensource-src-5.1.1.tar.xz"
sha256sums="6bfe7705ff58391205ca797d84ca6dda57ebcce106fdff52d4908b0e443567bf  qtsvg-opensource-src-5.1.1.tar.xz"
sha512sums="c6faa5e0e0815180e6183fd71caa19973d08707d729b83d269bedcfe62d9eaa1634d71a390ad11b3665601ec0d39b08728b0d14d07552fe7d7b81b9d930aa5b6  qtsvg-opensource-src-5.1.1.tar.xz"