archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt5-xmlpatterns / trunk / PKGBUILD
blob9ff73be6289055869d2ae642533aa442bc0bd2c7
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=qt5-xmlpatterns
5 _qtver=5.15.2
6 pkgver=${_qtver/-/}
7 pkgrel=2
8 arch=('x86_64')
9 url='https://www.qt.io'
10 license=('GPL3' 'LGPL3' 'FDL' 'custom')
11 pkgdesc='Support for XPath, XQuery, XSLT and XML schema validation'
12 depends=('qt5-base')
13 makedepends=('qt5-declarative')
14 optdepends=('qt5-declarative: QML bindings')
15 conflicts=('qtchooser')
16 groups=('qt' 'qt5')
17 _pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
18 source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
19 sha256sums=('76ea2162a7c349188d7e7e4f6c77b78e8a205494c90fee3cea3487a1ae2cf2fa')
20 options=(debug)
22 prepare() {
23   mkdir -p build
26 build() {
27   cd build
29   qmake ../${_pkgfqn}
30   make
33 package() {
34   cd build
35   make INSTALL_ROOT="$pkgdir" install
37   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
38   find "$pkgdir/usr/lib" -type f -name '*.prl' \
39     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
41   install -d "$pkgdir"/usr/share/licenses
42   ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}