aboutsummaryrefslogtreecommitdiff
path: root/linux/makepkg
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-03 16:39:32 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-03 16:39:32 +0100
commit85d9f14aa8bac16ab341662c770b64a15c21628b (patch)
tree422db18e798646cd4bc98abf342f25c09c0bdf1d /linux/makepkg
parentDownload items' width should no longer exceed the list width (diff)
downloadsmolbote-85d9f14aa8bac16ab341662c770b64a15c21628b.tar.xz
Changed from qbs to cmake
Diffstat (limited to 'linux/makepkg')
-rw-r--r--linux/makepkg/PKGBUILD53
1 files changed, 16 insertions, 37 deletions
diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD
index 31b2e9b..69cea4b 100644
--- a/linux/makepkg/PKGBUILD
+++ b/linux/makepkg/PKGBUILD
@@ -10,57 +10,36 @@ arch=('x86_64')
license=('GPL3')
depends=('qt5-base' 'qt5-webengine')
-makedepends=('git' 'qt5-tools' 'qbs' 'libconfig' 'pkg-config')
+makedepends=('git' 'qt5-tools' 'cmake' 'libconfig' 'pkg-config')
source=("git+git://neueland.iserlohn-fortress.net/smolbote.git")
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?
-_installroot='/usr/local'
+prepare() {
+ # any patches go here
+}
pkgver() {
cd smolbote
echo "$(git describe --long --tags | tr - .)"
}
-prepare() {
- # 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
+build() {
+ cd "$pkgname-$pkgver"
- # 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}
+ # Generate a makefile
+ # Adjust the install prefix as necessary, default is /usr/local/bin
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local "$srcdir"
- # Clear out the build folder
- rm -rf build
- mkdir build
-}
+ # Use this if you want to link with libc++ instead
+ # This requires clang, since gcc doesn't understand the concept of not using GPL software
+ #cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DUseLibCpp=On "$srcdir"
-build() {
- cd smolbote
- qbs build --settings-dir ../config -d ../build -p poi profile:qt release
+ # build, with 4 threads
+ make -j 4
}
package() {
- cd smolbote
- qbs install --settings-dir ../config -d ../build -p poi --install-root "${pkgdir}${_installroot}" profile:qt release
+ cd "$pkgname-$pkgver"
+ make install
}