summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ce70448ebe1c27672ccc6e7a82ac4504b04a80a (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
pkgname=cargo-outofdate-git
pkgver=0.3.0.19.gddd4adf
pkgrel=1
pkgdesc="Check outdated cargo dependencies"
arch=('x86_64' 'i686')
url="https://github.com/quininer/cargo-outofdate"
license=('MIT')
depends=('cargo')
makedepends=('cargo')
optdepends=()
provides=('cargo-outofdate')
conflicts=('cargo-outofdate')
source=($pkgname::git+https://github.com/quininer/cargo-outofdate)
sha256sums=('SKIP')

pkgver() {
	cd $pkgname
	echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always)
}

build() {
	cd $pkgname
	env CARGO_INCREMENTAL=0 cargo build --release
}

package() {
	cd $pkgname
	install -D -m755 "$srcdir/$pkgname/target/release/cargo-outofdate" "$pkgdir/usr/bin/cargo-outofdate"
}