core/qt5-webglplugin/PKGBUILD

38 lines
927 B
Bash
Raw Normal View History

2017-12-10 00:24:16 +08:00
pkgname=qt5-webglplugin
2018-10-18 16:17:28 +08:00
pkgver=5.11.2
2018-02-21 11:06:15 +08:00
pkgrel=1
2017-12-10 00:24:16 +08:00
arch=(x86_64)
url='http://qt-project.org/'
license=(GPL3 LGPL3 FDL custom)
pkgdesc='QPA plugin for running an application via a browser using streamed WebGL commands'
depends=(qt5-websockets qt5-declarative)
groups=('qt5')
options=('debug')
2018-06-23 18:27:51 +08:00
_pkgfqn="${pkgname/5-/}-everywhere-src-${pkgver}"
source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/submodules/${_pkgfqn}.tar.xz")
2018-10-18 16:17:28 +08:00
md5sums=('4dcc02411cc53e1b31cafb5032dc2cad'
2017-12-10 00:24:16 +08:00
prepare() {
mkdir -p build
}
build() {
cd build
2018-06-23 18:27:51 +08:00
qmake-qt5 ../${_pkgfqn}
2017-12-10 00:24:16 +08:00
make
}
package() {
cd build
make INSTALL_ROOT="$pkgdir" install
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
2018-06-23 20:59:43 +08:00
find "${pkgdir}/usr/lib" -type f -name '*.prl' \
2018-06-23 21:27:33 +08:00
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
2017-12-10 00:24:16 +08:00
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
}