summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPier Luigi Fiorini2018-12-24 13:39:09 +0100
committerPier Luigi Fiorini2018-12-24 13:39:09 +0100
commitab2a5c086ace4e31bd6fa16bff700f559c11da0b (patch)
treeb44c43bba80373e4ef9aa6b43a04fd61e73f9db7
parent8251902b80da2091307063ae3d98c3bcdb2396d7 (diff)
downloadaur-ab2a5c086ace4e31bd6fa16bff700f559c11da0b.tar.gz
Switch to CMake
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD29
2 files changed, 22 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 81b61f21ce6..2d2de4fa674 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Mon Dec 24 12:39:02 UTC 2018
pkgbase = qt5-gsettings-git
pkgdesc = Qt-style wrapper for GSettings
- pkgver = 20180428.98.3853712
+ pkgver = 20181130.102.a368ce3
pkgrel = 1
url = https://liri.io
arch = i686
@@ -10,7 +12,7 @@ pkgbase = qt5-gsettings-git
groups = liri-git
license = LGPL3
makedepends = git
- makedepends = liri-qbs-shared-git
+ makedepends = liri-cmake-shared-git
depends = qt5-declarative
depends = glib2
provides = qt5-gsettings
diff --git a/PKGBUILD b/PKGBUILD
index 2fa2d19ec74..f9bbf6cd2bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
pkgname=qt5-gsettings-git
-pkgver=20180428.98.3853712
+pkgver=20181130.102.a368ce3
pkgrel=1
pkgdesc="Qt-style wrapper for GSettings"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url='https://liri.io'
license=('LGPL3')
depends=('qt5-declarative' 'glib2')
-makedepends=('git' 'liri-qbs-shared-git')
+makedepends=('git' 'liri-cmake-shared-git')
conflicts=('qt5-gsettings')
replaces=('qt5-gsettings')
provides=('qt5-gsettings')
@@ -25,17 +25,24 @@ pkgver() {
echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git rev-list --count HEAD).$(git log -1 --format="%h")"
}
+prepare() {
+ 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 \
+ -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
}