summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPier Luigi Fiorini2017-05-06 22:30:32 +0200
committerPier Luigi Fiorini2017-05-06 22:30:32 +0200
commite81960e02c2599d4f5ee0792c8ac753f842a1224 (patch)
tree5cf1ae577acfa8d1ba4060fe0c740e359ddb1e74
parent3aa2440fde89462f27cc9a14bc08cdd4ef94c31f (diff)
downloadaur-e81960e02c2599d4f5ee0792c8ac753f842a1224.tar.gz
Build with Qbs
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD20
2 files changed, 14 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7262f64df62..dd3c6d76593 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Wed Apr 26 00:01:22 UTC 2017
+# Sat May 6 20:30:27 UTC 2017
pkgbase = qt5-accountsservice-git
pkgdesc = Qt-style wrapper for Accounts Service
- pkgver = 20170426.b8be73d
+ pkgver = 20170506.31442b4
pkgrel = 1
url = https://liri.io
arch = i686
@@ -12,6 +12,7 @@ pkgbase = qt5-accountsservice-git
groups = liri-git
license = LGPL3
makedepends = git
+ makedepends = qbs
depends = qt5-declarative
provides = qt5-accountsservice
conflicts = qtaccountsservice-git
diff --git a/PKGBUILD b/PKGBUILD
index 1c3728374c6..8298543a544 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
pkgname=qt5-accountsservice-git
-pkgver=20170426.b8be73d
+pkgver=20170506.31442b4
pkgrel=1
pkgdesc="Qt-style wrapper for Accounts Service"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url='https://liri.io'
license=('LGPL3')
depends=('qt5-declarative')
-makedepends=('git')
+makedepends=('git' 'qbs')
conflicts=('qtaccountsservice-git' 'qt5-accountsservice')
replaces=('qtaccountsservice-git' 'qt5-accountsservice')
provides=('qt5-accountsservice')
@@ -26,17 +26,19 @@ pkgver() {
}
prepare() {
- mkdir -p build
- pushd ${_gitname} && git submodule update --init && popd
+ cd ${srcdir}/${_gitname}
+ git submodule update --init
}
build() {
- cd build
- qmake LIRI_INSTALL_PREFIX=/usr CONFIG+=use_qt_paths ../${_gitname}/qtaccountsservice.pro
- make
+ cd ${srcdir}/${_gitname}
+ qbs setup-toolchains --type gcc /usr/bin/g++ gcc
+ qbs setup-qt /usr/bin/qmake-qt5 qt5
+ qbs config profiles.qt5.baseProfile gcc
+ qbs build --no-install -d build profile:qt5 qbs.installRoot:/usr lirideployment.qmlDir:lib/qt/qml
}
package() {
- cd build
- make INSTALL_ROOT="${pkgdir}" install
+ cd ${srcdir}/${_gitname}
+ qbs install -d build --no-build -v --install-root $pkgdir/usr profile:qt5
}