summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e959604fc1fca337b2b01b7fb289c4bae81fc5b (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
# Maintainer: Duong Do Minh Chau <duongdominhchau@gmail.com>
pkgname=o20-git
pkgver=r133.4f14dbe
pkgrel=1
pkgdesc="Office365 on your Linux PC"
arch=(x86_64)
url="https://gitlab.com/abstractsoftware/o20/o20coreapps"
license=('GPL')
depends=(zlib syntax-highlighting sonnet breeze
    qt5-{base,svg,quickcontrols{,2}}
    k{textwidgets,widgetsaddons,archive,config,iconthemes,coreaddons}
    ttf-roboto ttf-roboto-mono ttf-opensans ttf-ubuntu-font-family ttf-roboto-slab
)
makedepends=(git cmake extra-cmake-modules qt5-tools)
provides=(${pkgname/-git/})
conflicts=(${pkgname/-git/})
source=("${pkgname}::git+https://gitlab.com/abstractsoftware/o20/o20coreapps.git")
sha256sums=(SKIP)

pkgver() {
    cd "${pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${pkgname}"
    mkdir -p build && cd build
    cmake \
        -DCOMPILE_ONLY_WORD=On \
        -DINSTALL_FONT=Off \
        ..
    make
}

package() {
    cd "${pkgname}/build"
    make DESTDIR="${pkgdir}" install
    cd ..
    install -Dm644 -t "${pkgdir}/usr/share/licenses/o20" COPYING LICENSE
    cd dev
    find o20.fonts/Lobster -type f -exec \
        install -Dm644 {} "${pkgdir}/usr/share/fonts/"{} \;
}