blob: 2e0b130ab56c2c645cda477eede8d09c01e9b181 (
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
|
# Maintainer: Kenneth Endfinger <kaendfinger@gmail.com>
pkgname=cargo-edit-git
_pkgname=cargo-edit
pkgver=r640.82c09192
pkgrel=1
pkgdesc="A utility for adding cargo dependencies from the command line"
url="https://github.com/killercup/cargo-edit"
conflicts=('cargo-edit')
provides=('cargo-edit')
depends=('cargo')
makedepends=('git')
arch=('i686' 'x86_64')
license=('MIT')
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname/"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname/"
cargo build --release
}
package() {
cd "$srcdir/$_pkgname/"
for sub in rm add upgrade; do
install -Dm755 "target/release/cargo-$sub" "$pkgdir/usr/bin/cargo-$sub"
done
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|