aboutsummaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/makepkg/PKGBUILD29
1 files changed, 22 insertions, 7 deletions
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 <xiannox@iserlohn-fortress.net>
+# Maintainer: Aqua-sama <aqua@iserlohn-fortress.net>
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
}
-