summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPier Luigi Fiorini2018-12-24 13:46:46 +0100
committerPier Luigi Fiorini2018-12-24 13:46:46 +0100
commit08d354bbe07f5926444cdb2c9b7a081c16d7c959 (patch)
treeb84212f906b8406b2e3e17bbfbe6e82dba2f7ca2
parent8bd674cac3b523e3d6d8b8a27f254d17e6c33fdf (diff)
downloadaur-08d354bbe07f5926444cdb2c9b7a081c16d7c959.tar.gz
Switch to CMake
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD29
2 files changed, 20 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 15ed3a260e5..2f4098db47b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Mon Dec 24 12:46:44 UTC 2018
pkgbase = libliri-git
pkgdesc = Utilities for Liri Quick applications
- pkgver = 20180412.113.340f505
+ pkgver = 20181130.117.303ae04
pkgrel = 1
url = https://liri.io
arch = i686
@@ -10,7 +12,7 @@ pkgbase = libliri-git
groups = liri-git
license = LGPL3
makedepends = git
- makedepends = liri-qbs-shared-git
+ makedepends = liri-cmake-shared-git
depends = qt5-declarative
depends = libqtxdg
provides = libliri
diff --git a/PKGBUILD b/PKGBUILD
index 004cf4e9c9c..1f95ee9ef59 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
pkgname=libliri-git
-pkgver=20180412.113.340f505
+pkgver=20181130.117.303ae04
pkgrel=1
pkgdesc="Utilities for Liri Quick applications"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url='https://liri.io'
license=('LGPL3')
depends=('qt5-declarative' 'libqtxdg')
-makedepends=('git' 'liri-qbs-shared-git')
+makedepends=('git' 'liri-cmake-shared-git')
options=(debug !strip)
conflicts=('libliri')
replaces=('libliri')
@@ -27,21 +27,24 @@ pkgver() {
}
prepare() {
- cd ${srcdir}/${_gitname}
- git submodule update --init
+ mkdir -p build
}
build() {
- 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 \
- modules.lirideployment.prefix:/usr \
- modules.lirideployment.qmlDir:/usr/lib/qt/qml
+ cd build
+ cmake ../${_gitname} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_TESTING:BOOL=OFF \
+ -DINSTALL_SYSCONFDIR=/etc \
+ -DINSTALL_LIBDIR=/usr/lib \
+ -DINSTALL_LIBEXECDIR=/usr/lib \
+ -DINSTALL_QMLDIR=/usr/lib/qt/qml \
+ -DINSTALL_PLUGINSDIR=/usr/lib/qt/plugins
+ make
}
package() {
- cd ${srcdir}/${_gitname}
- qbs install -d build --no-build -v --install-root $pkgdir profile:qt5
+ cd build
+ make DESTDIR="$pkgdir" install
}