From cf06dcb0650f603ae3d634634d81f9ec78d21937 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 21 Dec 2017 17:52:56 +0100 Subject: Edited documentation - Search highlighting is removed when you close the search box - Fixed PKGBUILD not working - PKGBUILD can now pick compiler and optimization --- linux/makepkg/PKGBUILD | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) (limited to 'linux/makepkg/PKGBUILD') diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD index 9c47f91..31b2e9b 100644 --- a/linux/makepkg/PKGBUILD +++ b/linux/makepkg/PKGBUILD @@ -1,7 +1,7 @@ -# Maintainer: xiannox +# Maintainer: Aqua-sama pkgname=smolbote-git -pkgver=0.1.0 +pkgver=0.0.0 pkgrel=1 pkgdesc='Yet another Qt browser' url="https://neueland.iserlohn-fortress.net/smolbote" @@ -10,7 +10,7 @@ arch=('x86_64') license=('GPL3') depends=('qt5-base' 'qt5-webengine') -makedepends=('git' 'qt5-tools' 'qbs', 'libconfig', 'pkg-config') +makedepends=('git' 'qt5-tools' 'qbs' 'libconfig' 'pkg-config') source=("git+git://neueland.iserlohn-fortress.net/smolbote.git") sha512sums=('SKIP') @@ -18,9 +18,18 @@ sha512sums=('SKIP') # qmake location for your Qt version # Useful if you have another Qt version installed in a specific location _qmake='/usr/bin/qmake-qt5' + +# compiler profile for the qt profile +_compiler='clang' + +# Target architecture: x86 x86_64 arm +_architecture='x86_64' +# Optimization level: none, fast, small +_optimization='fast' + # install root, ex: '/usr' or '/usr/local' # Should this install in /usr/bin, or in /usr/local/bin, or perhaps in /somewhere/else/bin? -_iroot='/usr/local' +_installroot='/usr/local' pkgver() { cd smolbote @@ -28,12 +37,19 @@ pkgver() { } prepare() { - # Prepare the qbs modules + # Prepare qbs toolchain + # qbs config location rm -rf config mkdir config + qbs-setup-toolchains --settings-dir config --detect qbs-setup-qt --settings-dir config ${_qmake} qt + # set a custom compiler profile + #qbs-config --settings-dir config profiles.${_compiler}.qbs.architecture ${_architecture} + qbs-config --settings-dir config profiles.${_compiler}.qbs.optimization ${_optimization} + qbs-config --settings-dir config profiles.qt.baseProfile ${_compiler} + # Clear out the build folder rm -rf build mkdir build @@ -46,6 +62,5 @@ build() { package() { cd smolbote - qbs install --settings-dir ../config -d ../build -p poi --install-root "${pkgdir}${_iroot}" profile:qt release + qbs install --settings-dir ../config -d ../build -p poi --install-root "${pkgdir}${_installroot}" profile:qt release } - -- cgit v1.2.1