blob: 7d25f5bdd129cbae4022d3db12491544f7d309ce (
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: Gianluca Recchia <gianluca dot recchia97 at libero dot it>
pkgname=rusty-tags-git
_pkgname="${pkgname%-git}"
pkgver=3.8.1.r0.gca08d2a
pkgrel=1
pkgdesc='Create ctags/etags for a cargo project and all of its dependencies'
url="https://github.com/dan-t/$_pkgname"
depends=('ctags')
makedepends=('cargo' 'git')
arch=('x86_64')
license=('BSD')
provides=('rusty-tags')
conflicts=('rusty-tags')
source=("${pkgname}::git+$url")
sha1sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
cargo build --release
}
package() {
cd "$pkgname"
install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}
|