summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23855c83f155d200a685a3ed424b4329c2bb02bb (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
# Maintainer: Ilya Guterman (amfernusus@gmail.com)

_pkgname='zee'
pkgname="zee-git"
pkgver=r137.1073474
pkgrel=1
pkgdesc="Terminal editor with emacs like kebinds."
arch=('x86_64')
url='https://github.com/zee-editor/zee'
license=('Apache')
sha256sums=('SKIP')
source=("git+https://github.com/zee-editor/${_pkgname}")
provides=('zee')
makedepends=('git' 'rust')
depends=('libgit2' 'libxcb')

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

build() {
    cd "${srcdir}/${_pkgname}"
    cargo build --release --all-features
}

package() {
    cd "${srcdir}/${_pkgname}"
    cargo build --release --all-features
    install -D ./target/release/${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
}