summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed8a6cf1c9bd77aa012e97504d65e0f58bc5acfd (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 Gabriel de Oliveira <gabriel.o03@aluno.ifsc.edu.br>

pkgname=hummin
pkgver=r28.b117aef
pkgrel=1
pkgdesc="Command line client for the imperial library of trantor"
url="http://kx5thpx2olielkihfyo4jgjqfb7zx7wxr3sd4xzt26ochei4m6f7tayd.onion/"
license=('WTFPL')
source=("git+https://gitlab.com/trantor/hummin.git")
sha512sums=('SKIP')
arch=('x86_64')
depends=(tor)
makedepends=(go)

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

build() {
    cd $pkgname
    go build
}

package() {
    cd $pkgname
    mkdir -p $pkgdir/usr/bin/
    install -m 0755 hummin $pkgdir/usr/bin
}

#vim: syntax=sh