summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb261b39e2c6ae63c732cb49f0aaef888b709af3 (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
reponame="fcitx5-fbterm"
pkgname="fcitx5-fbterm-git"
pkgver="r3.6d3c949"
pkgrel="1"
pkgdesc="fcitx-fbterm refactor for fcitx5. Fbterm support for fcitx"
arch=("x86_64")
depends=("fcitx5" "fcitx5-gtk")
makedepends=("cmake" "git")
license=("GPL3")
source=("git+https://github.com/fcitx/$reponame")
url="https://github.com/fcitx/$reponame"
sha512sums=("SKIP")
optdepends=("fbterm: fbterm to use fcitx5-fbterm")

pkgver() {
        cd "$reponame"
        ( set -o pipefail
          git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
          printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
        )
}


build() {
    cd "$reponame"
    mkdir -p build
    cd build
    cmake ..
    make
}

package() {
    mkdir -p "${pkgdir}/usr/bin"
    cp "$reponame/build/src/fcitx5-fbterm" "${pkgdir}/usr/bin"
}