diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-05 20:23:33 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-05 20:23:33 +0100 |
commit | 72b15842815566c46b9e770915fa917d41e7fe89 (patch) | |
tree | 132e5ef83fca501b436003838c0bf21fb6bc961b /linux | |
parent | Various minor fixes (diff) | |
download | smolbote-72b15842815566c46b9e770915fa917d41e7fe89.tar.xz |
Updated ReadMe and pkgbuild
Diffstat (limited to 'linux')
-rw-r--r-- | linux/makepkg/PKGBUILD.aqua | 58 | ||||
-rw-r--r-- | linux/makepkg/PKGBUILD.generic (renamed from linux/makepkg/PKGBUILD) | 0 |
2 files changed, 58 insertions, 0 deletions
diff --git a/linux/makepkg/PKGBUILD.aqua b/linux/makepkg/PKGBUILD.aqua new file mode 100644 index 0000000..5dfe35e --- /dev/null +++ b/linux/makepkg/PKGBUILD.aqua @@ -0,0 +1,58 @@ +# Maintainer: Aqua-sama <aqua@iserlohn-fortress.net> + +pkgname=smolbote-git +pkgver=0.0.0 +pkgrel=1 +pkgdesc='Yet another no-frills browser' +url="https://neueland.iserlohn-fortress.net/smolbote" + +arch=('x86_64') +license=('GPL3') + +depends=('qt5-base' 'qt5-webengine') +makedepends=('git' 'cmake' 'ninja' 'libconfig' 'pkg-config') + +source=("smolbote-git::git+git://neueland.iserlohn-fortress.net/smolbote.git") +sha512sums=('SKIP') + +# any patches go here +#prepare() { +#} + +pkgver() { + cd smolbote-git + echo "$(git describe --long --tags | tr - .)" +} + +build() { + rm -rf "$pkgname-$pkgver" + mkdir "$pkgname-$pkgver" + cd "$pkgname-$pkgver" + + # CMake Options + # build type + _cmake_options="-DCMAKE_BUILD_TYPE=Release" + + # install prefix, or where should the binary be installed + _cmake_options="$_cmake_options -DCMAKE_INSTALL_PREFIX=$pkgdir/usr/local" + + # compiler + _cmake_options="$_cmake_options -DCMAKE_CXX_COMPILER=/usr/bin/clang++" + + # use libc++ instead of libstdc++ + _cmake_options="$_cmake_options -DUseLibCpp=On" + + # build system + _cmake_options="$_cmake_options -GNinja" + + # Generate a makefile + cmake $_cmake_options "$srcdir/smolbote-git" + + # build + ninja +} + +package() { + cd "$pkgname-$pkgver" + ninja install +} diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD.generic index 9a17f9b..9a17f9b 100644 --- a/linux/makepkg/PKGBUILD +++ b/linux/makepkg/PKGBUILD.generic |