PKGBUILDs/extra/qt5-imageformats/PKGBUILD

47 lines
1.1 KiB
Bash
Raw Normal View History

2016-03-27 20:28:10 +00:00
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch for libwebp aarch64 neon decision
pkgname=qt5-imageformats
2016-06-18 17:50:08 +00:00
_qtver=5.6.1
2016-03-27 20:28:10 +00:00
pkgver=${_qtver/-/}
2016-06-18 17:50:08 +00:00
pkgrel=1
2016-03-27 20:28:10 +00:00
arch=('i686' 'x86_64')
url='http://qt-project.org/'
license=('GPL3' 'LGPL' 'FDL' 'custom')
pkgdesc='Plugins for additional image formats: TIFF, MNG, TGA, WBMP'
2016-05-03 12:14:14 +00:00
depends=('qt5-base' 'jasper' 'libmng' 'libwebp')
2016-03-27 20:28:10 +00:00
makedepends=()
conflicts=('qt')
groups=('qt' 'qt5')
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
'aarch64.patch')
2016-06-18 17:50:08 +00:00
md5sums=('3c96ea81db49132eaa4e0d9c9a9db0c2'
2016-03-27 20:28:10 +00:00
'c467ac74c0faeac0fab836181e228e1d')
prepare() {
mkdir -p build
cd ${_pkgfqn}
patch -p1 -i ../aarch64.patch
}
build() {
cd build
qmake ../${_pkgfqn}
make
}
package() {
cd build
make INSTALL_ROOT="$pkgdir" install
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
}