blob: b8932626c0afa55aba5fb6de04db7e140a31e4e0 (
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
36
37
38
|
# Maintainer: Severin Kaderli <severin@kaderli.dev>
_pkgname=talk-cli
pkgname=${_pkgname}-git
pkgver=0.2.0.r0.gcb7072c
pkgrel=1
pkgdesc="A command line interface for using Nextcloud Talk."
arch=('i686' 'x86_64')
url="https://gitlab.com/severinkaderli/talk-cli"
license=('MIT')
depends=('openssl')
makedepends=('cargo' 'git')
conflicts=('talk-cli')
source=('git+https://gitlab.com/severinkaderli/talk-cli')
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
cargo build --release --locked --all-features
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "target/completions/_${_pkgname}" "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
install -Dm644 "target/completions/${_pkgname}.bash" "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
install -Dm644 "target/completions/${_pkgname}.fish" "${pkgdir}/usr/share/fish/completions/${_pkgname}.fish"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|