summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48153dd092e67636c3c5183f39f364d9b37273dc (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
# Maintainer: Boohbah <boohbah at gmail.com>

pkgname=fiche-git
pkgver=r40.ga7174e1
pkgrel=1
pkgdesc="Command line pastebin for sharing terminal output (git version)"
arch=('i686' 'x86_64')
url="https://github.com/solusipse/fiche"
license=('MIT')
makedepends=('git')
source=("${pkgname}::git+https://github.com/solusipse/fiche")
md5sums=('SKIP')

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

build() {
    cd "${pkgname}"
    make
}

package() {
    cd "${pkgname}"
    install -Dm755 fiche "${pkgdir}/usr/bin/fiche"
}