summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ee7b5ecc7f05dfd0519be9ab11e0143bc1cf265 (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
# Maintainer: Daniil T <contact.2imt@mail.ru>
pkgname="polycat"
pkgver="1.2.0"
pkgrel=3
epoch=
pkgdesc="Runcat module for Polybar"
arch=("x86_64")
url="https://github.com/2IMT/polycat.git"
license=("MIT")
groups=()
depends=("glibc" "gcc-libs")
makedepends=("cmake" "clang" "git")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url#tag=v$pkgver"
        "git+https://github.com/nlohmann/json.git#tag=v3.11.2"
        "git+https://github.com/p-ranav/argparse.git#tag=v2.9")
noextract=()
md5sums=('SKIP'
        'SKIP'
        'SKIP')
validpgpkeys=()

build() {
    export CC=clang
    export CXX=clang++
    cd  $pkgname
    git submodule init
    git config submodule.dep/nlohmann-json.url "$srcdir/json"
    git config submodule.dep/argparse.url "$srcdir/argparse"
    git -c protocol.file.allow=always submodule update
    cmake -DCMAKE_BUILD_TYPE=RELEASE .
    cmake --build .
}

package() {
    cd $pkgname

    install -Dm755 "$pkgname" "$pkgdir/usr/bin/polycat"

    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

    install -Dm644 "res/$pkgname.ttf" "$pkgdir/usr/share/fonts/TTF/$pkgname.ttf"
}