core/qt5-remoteobjects/PKGBUILD

40 lines
959 B
Bash
Raw Normal View History

2017-12-10 00:24:16 +08:00
pkgname=qt5-remoteobjects
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='Inter-process communication (IPC) module developed for Qt'
depends=(qt5-base)
makedepends=(qt5-declarative)
optdepends=('qt5-declarative: QML bindings')
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")
md5sums=('0a93e35428d8ea13b967ffbd1a2f76d5')
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}
}