aboutsummaryrefslogtreecommitdiff
path: root/linux/makepkg/PKGBUILD.aqua
blob: 5dfe35e14044d2b951673213b19d17b864afb3b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
}