desktop/qbs/PKGBUILD
2018-04-08 09:37:12 +01:00

31 lines
837 B
Bash

pkgname=qbs
pkgver=1.11.0
pkgrel=1
pkgdesc='Cross platform build tool'
arch=('x86_64')
url='https://wiki.qt.io/Qbs'
license=('LGPL')
depends=('qt5-script')
source=("https://download.qt.io/official_releases/qbs/${pkgver}/qbs-src-${pkgver}.tar.gz")
sha256sums=('6ce30c468e688f6843468324a34a7191409b471c3ff6f3e834ef8bfa7b3467cd')
build() {
cd $pkgname-src-$pkgver
qmake-qt5 QBS_INSTALL_PREFIX=/usr \
QBS_LIBEXEC_INSTALL_DIR=/usr/lib/qbs \
QBS_LIBEXEC_DESTDIR=../../../lib/qbs \
QBS_RELATIVE_LIBEXEC_PATH=../lib/qbs \
CONFIG+=qbs_enable_project_file_updates \
qbs.pro
make
}
package() {
cd $pkgname-src-$pkgver
make INSTALL_ROOT="${pkgdir}" install
# For some reason they don't install all the headers so we'll have to do that
# by hand.
cp src/lib/corelib/tools/*.h "$pkgdir"/usr/include/qbs/tools/
}