summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9df621f4274a3ea16aef1d809931eb7c98db0a3e (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
# Maintainer: William Gathoye <william + aur at gathoye dot be>
# Contributor: rws <elisp dot vim at google mail>

_pkgname=clog
pkgname=${_pkgname}-git
pkgver=199
pkgrel=1

pkgdesc='Generate beautiful changelogs from your Git commit history'
arch=('i686' 'x86_64')
url='https://github.com/clog-tool/clog-cli'
license=('MIT')

makedepends=('git' 'rust' 'cargo')
provides=('clog')
conflicts=('clog-bin')

source=("git://github.com/thoughtram/${_pkgname}.git")
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    git rev-list --count HEAD
}

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

package() {
    cd "$srcdir/$_pkgname"
    mkdir -p "${pkgdir}/usr/bin"
    cp -p target/release/clog "${pkgdir}/usr/bin"
}