summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af1925178774259da6b1dfd1f5837c53a24307e6 (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
# Maintainer: Achmad Fathoni <fathoni DOT id AT gmail DOT com>

pkgname=qt5-charts-ubuntu-ver
_pkgname=qt5-charts
_qtver=5.15.3
pkgver=${_qtver/-/}
pkgrel=1
arch=('x86_64')
url='https://www.qt.io'
license=('GPL3')
pkgdesc='qt5-charts with same version as current Ubuntu(focal)'
depends=('qt5-base')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
makedepends=('qt5-declarative')
optdepends=('qt5-declarative: QML bindings')
groups=('qt' 'qt5')
_pkgfqn="${_pkgname/5-/}-everywhere-opensource-src-${_qtver}"
source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
sha256sums=('accf85cda64641d42f4cba098741c8b9df38f7de606a38c8663d754bb61623af')

prepare() {
  mkdir -p build
}

build() {
  cd build

  qmake ../${_pkgname/5-/}-everywhere-src-${_qtver}
  make
}

package() {
  cd build
  make INSTALL_ROOT="$pkgdir" install

  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
  find "$pkgdir/usr/lib" -type f -name '*.prl' \
    -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
}