# Maintainer: Fredy GarcĂ­a # Contributor: Stefan Husmann pkgname=just-git pkgver=0.3.10.r0.ef45b02 pkgrel=1 pkgdesc="A handy way to save and run project-specific commands" arch=("i686" "x86_64") url="https://github.com/casey/${pkgname%-git}" license=("APACHE" "custom:MIT" "custom:WTFPL") depends=("gcc-libs") makedepends=("cargo" "git") provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("${pkgname%-git}::git+https://github.com/casey/${pkgname%-git}.git") sha256sums=("SKIP") pkgver() { cd "${pkgname%-git}" git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | tr -d v } build() { cd "${pkgname%-git}" cargo build --release } package() { cd "${pkgname%-git}" install -Dm755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}" install -Dm644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }