From f0551b8645d9e3babf35e40fbc74c02ec8990e58 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 22 Sep 2017 16:44:19 +0200 Subject: Updated documentation --- linux/makepkg/PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 linux/makepkg/PKGBUILD (limited to 'linux/makepkg/PKGBUILD') diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD new file mode 100644 index 0000000..0d9fc88 --- /dev/null +++ b/linux/makepkg/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: xiannox + +pkgname=smolbote-git +pkgver=0.1.0 +pkgrel=1 +pkgdesc='Yet another Qt browser' +url="https://neueland.iserlohn-fortress.net/smolbote" + +arch=('x86_64') +license=('GPL3') + +depends=('qt5-base' 'qt5-webengine') +makedepends=('git' 'qt5-tools' 'qbs') + +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' +# 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' + +pkgver() { + cd smolbote + echo "$(git describe --long --tags | tr - .)" +} + +prepare() { + # Prepare the qbs modules + rm -rf config + mkdir config + qbs-setup-toolchains --settings-dir config --detect + qbs-setup-qt --settings-dir config ${_qmake} qt + + # Clear out the build folder + rm -rf build + mkdir build +} + +build() { + cd smolbote + qbs build --settings-dir ../config -d ../build profile:qt release +} + +package() { + cd smolbote + qbs install --settings-dir ../config -d ../build --install-root "${pkgdir}${_iroot}" profile:qt release +} + -- cgit v1.2.1