summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68e05508ee664289961ae0d3c2576c57d4886903 (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
# Maintainer: Rodrigo Leite <rodrigolf.dev@gmail.com>
_pkgname=funkwhale-cli
pkgname=${_pkgname}-git
pkgver=v0.5.0+5+g2802466
pkgrel=1
pkgdesc='CLI tool for interacting with funkwhale instances'
arch=('x86_64')
url="https://github.com/RodrigoLeiteF/funkwhale-cli"
license=('GPLv2')
makedepends=('rust' 'cargo' 'git')
provides=('funkwhale-cli')
conflicts=('funkwhale-cli')
source=("git+https://github.com/RodrigoLeiteF/funkwhale-cli")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname"
    git describe --tags | sed 's/-/+/g'
}

package() {
    cd funkwhale-cli
    cargo build --release
    mkdir -p $pkgdir/usr/bin
    mv target/release/funkwhale-cli $pkgdir/usr/bin
}