summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 492ffda7757f64a326182d79af1244779b61b112 (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-web-git
pkgver=0.6.4.210.g77e40ef
pkgrel=1
pkgdesc="A Cargo subcommand for the client-side Web"
arch=('x86_64')
url="https://github.com/koute/cargo-web"
license=('MIT')
depends=('cargo')
makedepends=('cargo')
optdepends=()
provides=('cargo-web')
conflicts=('cargo-web')
source=($pkgname::git+https://github.com/koute/cargo-web)
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
	cargo build --release
}

package() {
	cd $pkgname
	install -Dm755 "$srcdir/$pkgname/target/release/cargo-web" "$pkgdir/usr/bin/cargo-web"
}