summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce6543830807b334863091544be9bbb7ecdca5d2 (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
pkgname=cargo-dinghy-git
_pkgname=dinghy
pkgdesc="Easier cross-compilation for phones and single boards computers"
pkgrel=1
pkgver=0.4.19.552
arch=('i686' 'x86_64')
conflicts=("cargo-dinghy")
provides=("cargo-dinghy")
url="https://github.com/snipsco/dinghy"
license=('Apache' 'MIT')
depends=('rust' 'cargo')
makedepends=('rust' 'cargo')
optdepends=('android-tools: android support' 'android-ndk: android support')
source=("$_pkgname::git+https://github.com/snipsco/dinghy")
sha256sums=('SKIP')

pkgver() {
	cd $_pkgname/cargo-dinghy
	echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD)"
}

build() {
	cd $_pkgname/cargo-dinghy
	cargo build --release
}

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