diff options
Diffstat (limited to 'community/qt5-qtsvg/APKBUILD')
-rw-r--r-- | community/qt5-qtsvg/APKBUILD | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/community/qt5-qtsvg/APKBUILD b/community/qt5-qtsvg/APKBUILD index ff72ccb34c..4247fba80e 100644 --- a/community/qt5-qtsvg/APKBUILD +++ b/community/qt5-qtsvg/APKBUILD @@ -1,48 +1,41 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=qt5-qtsvg -pkgver=5.9.1 +_pkgname=${pkgname/qt5-//}-opensource-src +pkgver=5.9.3 +_ver=${pkgver/_/-} +_ver=${_ver/beta0/beta} +_ver=${_ver/rc0/rc} +_V=${_ver/rc/RC} 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="" +makedepends="qt5-qtbase-dev zlib-dev" 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/$_pkgname-$_V.tar.xz" -source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtsvg-opensource-src-$_V.tar.xz" +builddir="$srcdir"/$_pkgname-${_V%-*} -builddir="$srcdir"/qtsvg-opensource-src-$_V -prepare() { - local i +build() { cd "$builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + qmake-qt5 && make } -build() { +check() { cd "$builddir" - qmake-qt5 && make || return 1 + make check } package() { cd "$builddir" - make install INSTALL_ROOT="$pkgdir" || return 1 + make install INSTALL_ROOT="$pkgdir" } -sha512sums="d1c28f58a8f64c998f5a601f4353831cabd1d6414a29a85dd9f57509a68cb3305ad4af22562f4110d42ca3e180c757c6112f1e24c91672ed8b5ad249915110f0 qtsvg-opensource-src-5.9.1.tar.xz" +sha512sums="6612dbac0aed400befa81ce513dd7be133e4d3a1ada77782178aea4b4946730d3059810fb564366c942a26e3b2335679d6470149cedbf6acb00b82a8451a2978 qtsvg-opensource-src-5.9.3.tar.xz" |