Last active
January 27, 2017 10:31
-
-
Save Tobi29/7aa2ae7a3d0757116089d7bc7365b078 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $ | |
# Maintainer: Felix Yan <felixonmars@archlinux.org> | |
# Contributor: Andrea Scarpino <andrea@archlinux.org> | |
# Contributor: Tobias Auerochs <tobi291019@gmail.com> | |
pkgname=qt5-wayland | |
_qtver=5.8.0-beta | |
pkgver=${_qtver/-/} | |
pkgrel=1 | |
arch=('i686' 'x86_64') | |
url='http://qt-project.org/' | |
license=('GPL3' 'LGPL3' 'FDL' 'custom') | |
pkgdesc='Provides APIs for Wayland' | |
depends=('qt5-declarative' 'libxcomposite' 'wayland') # namcap note: wayland is needed for nvidia-libgl users | |
groups=('qt' 'qt5') | |
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}" | |
source=("http://download.qt.io/development_releases/qt/5.8/${_qtver}/submodules/${_pkgfqn}.tar.xz") | |
md5sums=('61358bd4b12cd1e65a0b46133943bd37') | |
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} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment