summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPier Luigi Fiorini2018-12-24 13:43:05 +0100
committerPier Luigi Fiorini2018-12-24 13:43:05 +0100
commitacf7a06261fd4ee29e1ca44f717a8b7e5a85f2c4 (patch)
tree5f46eb3cbb918aa9ca761f7a421103b108bdf47a
parent455e606a981a31c1fc6b689805321aaea0a78d58 (diff)
downloadaur-acf7a06261fd4ee29e1ca44f717a8b7e5a85f2c4.tar.gz
Switch to CMake
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD30
2 files changed, 22 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 38808e09e8c..dacc4e877d6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,3 +1,5 @@
+# Generated by mksrcinfo v8
+# Mon Dec 24 12:41:21 UTC 2018
pkgbase = qt5-udev-git
pkgdesc = Qt-style wrapper for udev
pkgver = 20180428.50.c576094
@@ -10,7 +12,7 @@ pkgbase = qt5-udev-git
groups = liri-git
license = LGPL3
makedepends = git
- makedepends = liri-qbs-shared-git
+ makedepends = liri-cmake-shared-git
depends = qt5-base
provides = qt5-udev
conflicts = qt5-udev
diff --git a/PKGBUILD b/PKGBUILD
index c1b5390a8a2..ee7145c44e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
pkgname=qt5-udev-git
-pkgver=20180428.50.c576094
+pkgver=20181130.54.ba2d937
pkgrel=1
pkgdesc="Qt-style wrapper for udev"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url='https://liri.io'
license=('LGPL3')
depends=('qt5-base')
-makedepends=('git' 'liri-qbs-shared-git')
+makedepends=('git' 'liri-cmake-shared-git')
conflicts=('qt5-udev')
replaces=('qt5-udev')
provides=('qt5-udev')
@@ -25,17 +25,25 @@ 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 \
+ -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
}