APKBUILD 1.19 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtgraphicaleffects
3
pkgver=5.9.1
4 5
_ver=${pkgver/_/-}
_ver=${_ver/beta0/beta}
6 7
_ver=${_ver/rc0/rc}
_V=${_ver/rc/RC}
8
pkgrel=0
9 10 11 12 13 14
pkgdesc="Qt5 - QtGraphicalEffects component"
url="http://qt-project.org/"
arch="all"
license="LGPLv2 with exceptions or GPLv3 with exceptions"
depends=""
depends_dev=""
15
makedepends="$depends_dev qt5-qtbase-dev qt5-qtdeclarative-dev"
16 17
install=""
subpackages=""
18
case $pkgver in
19
*_beta*|*_rc*) _rel=development_releases;;
20 21
*) _rel=official_releases;;
esac
22
source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtgraphicaleffects-opensource-src-$_V.tar.xz"
23

24
_qt5_prefix=/usr/lib/qt5
25
builddir="$srcdir"/qtgraphicaleffects-opensource-src-$_V
26 27
prepare() {
	local i
28
	cd "$builddir"
29 30 31 32 33 34 35 36
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
37
	cd "$builddir"
38
	qmake-qt5 && make || return 1
39 40 41
}

package() {
42
	cd "$builddir"
43 44 45
	make install INSTALL_ROOT="$pkgdir" || return 1
}

46
sha512sums="c026900b426bacef40ddfaed7a32546f1f3f5f4e74fd1b2be247e5f81b4dc0894b585dda523e3ec0d875079b984efd379fce5cbf0e81d3cc4dbffddf0980e515  qtgraphicaleffects-opensource-src-5.9.1.tar.xz"