blob: ef407ecbafb48738c0b75d291efec0057487d5b4 (
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
|
# Maintainer: Kevin K. <kbknapp@gmail.com>
_pkgname=docli
pkgname=${_pkgname}-git
pkgver=0.1.0
pkgrel=1
pkgdesc='command line utility for managing digitalocean infrastructure'
arch=('i686' 'x86_64')
url="https://kbknapp.github.io/${_pkgname}-rs"
license=('MIT')
makedepends=('git' 'cargo' 'rust')
provides=("${_pkgname}")
conflicts=("${_pkgname}-bin")
source=("git://github.com/kbknapp/${_pkgname}-rs.git")
sha256sums=('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"
install -D -m644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE-MIT"
install -Dm 0755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}
|