aboutsummaryrefslogtreecommitdiff
path: root/linux/makepkg/PKGBUILD
blob: 69cea4b262222b867535879b6ef0f1b2ccfc9fcb (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
# Maintainer: Aqua-sama <aqua@iserlohn-fortress.net>

pkgname=smolbote-git
pkgver=0.0.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' 'cmake' 'libconfig' 'pkg-config')

source=("git+git://neueland.iserlohn-fortress.net/smolbote.git")
sha512sums=('SKIP')

prepare() {
    # any patches go here
}

pkgver() {
    cd smolbote
    echo "$(git describe --long --tags | tr - .)"
}

build() {
    cd "$pkgname-$pkgver"

    # 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"

    # 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, with 4 threads
    make -j 4
}

package() {
    cd "$pkgname-$pkgver"
    make install
}