Date: Friday, April 21, 2017 @ 12:02:00 Author: arojas Revision: 293822
archrelease: copy kde-unstable to kde-unstable-x86_64 Added: qt5-gamepad/repos/kde-unstable-x86_64/ qt5-gamepad/repos/kde-unstable-x86_64/PKGBUILD (from rev 293821, qt5-gamepad/kde-unstable/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: qt5-gamepad/repos/kde-unstable-x86_64/PKGBUILD (from rev 293821, qt5-gamepad/kde-unstable/PKGBUILD) =================================================================== --- kde-unstable-x86_64/PKGBUILD (rev 0) +++ kde-unstable-x86_64/PKGBUILD 2017-04-21 12:02:00 UTC (rev 293822) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Antonio Rojas <aro...@archlinux.org> + +pkgname=qt5-gamepad +_qtver=5.9.0-beta2 +pkgver=${_qtver/-/} +pkgrel=1 +arch=('i686' 'x86_64') +url='http://qt-project.org/' +license=('GPL3' 'LGPL3' 'FDL' 'custom') +pkgdesc='Adds support for getting events from gamepad devices' +depends=('qt5-base' 'sdl2') +makedepends=('qt5-declarative') +optdepends=('qt5-declarative: QML bindings') +groups=('qt' 'qt5') +_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}" +source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz") +sha256sums=('c58fdd999fd543bedc139a6ed384ee9fba35d4b8111f1fcb085b12ab57d0caaf') + +prepare() { + mkdir -p build +} + +build() { + cd build + + qmake ../${_pkgfqn} + 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' {} \; + + install -d "$pkgdir"/usr/share/licenses + ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname} +}