db-move: moved linux from [testing] to [core] (x86_64)
[arch-packages.git] / qt5-gamepad / trunk / PKGBUILD
blob1a576b2a2cc8e7f3d2ed8bc2320661e936a9773b
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
4 pkgname=qt5-gamepad
5 _qtver=5.15.2
6 _basever=5.15.9
7 pkgver=5.15.9
8 pkgrel=1
9 _commit=7c05744e38d44afac687df3349d548c8790837db
10 arch=('x86_64')
11 url='https://www.qt.io'
12 license=('GPL3' 'LGPL3' 'FDL' 'custom')
13 pkgdesc='Adds support for getting events from gamepad devices'
14 depends=('qt5-base' 'sdl2')
15 makedepends=('qt5-declarative' 'git')
16 optdepends=('qt5-declarative: QML bindings')
17 groups=('qt' 'qt5')
18 _pkgfqn=${pkgname/5-/}
19 source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
20 sha256sums=('SKIP')
22 pkgver() {
23   cd $_pkgfqn
24   echo "$_basever+kde+r"`git rev-list --count v$_basever-lts-lgpl..$_commit` | sed -e 's|+kde+r0||'
27 prepare() {
28   mkdir -p build
31 build() {
32   cd build
34   qmake ../${_pkgfqn}
35   make
38 package() {
39   cd build
40   make INSTALL_ROOT="$pkgdir" install
42   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
43   find "$pkgdir/usr/lib" -type f -name '*.prl' \
44     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
46   install -d "$pkgdir"/usr/share/licenses
47   ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}