summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPier Luigi Fiorini2017-05-14 17:28:16 +0200
committerPier Luigi Fiorini2017-05-14 17:28:16 +0200
commitd5c0c89399024d2c5c82a3ae579bc0a4e5dcc302 (patch)
treea0b2c60a73a20072086d4e9b5b5bad8183f4ff6a /PKGBUILD
downloadaur-d5c0c89399024d2c5c82a3ae579bc0a4e5dcc302.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..19a12ec42c6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
+
+pkgname=libliri-git
+pkgver=20170513.6a2591a
+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' 'qbs')
+conflicts=('libliri')
+replaces=('libliri')
+provides=('libliri')
+groups=('liri-git')
+
+_gitroot="git://github.com/lirios/libliri.git"
+_gitbranch=develop
+_gitname=libliri
+source=(${_gitname}::${_gitroot}#branch=${_gitbranch})
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${srcdir}/${_gitname}
+ echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git log -1 --format="%h")"
+}
+
+prepare() {
+ cd ${srcdir}/${_gitname}
+ git submodule update --init
+}
+
+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 qbs.installRoot:/usr lirideployment.qmlDir:lib/qt/qml
+}
+
+package() {
+ cd ${srcdir}/${_gitname}
+ qbs install -d build --no-build -v --install-root $pkgdir/usr profile:qt5
+}