# Maintainer: Vincent Herlemont pkgname=short-git pkgver=0.3.2.r2.g58096a7 pkgrel=3 pkgdesc="A concise cli launcher / project manager using env files" source=("${pkgname}::git+https://github.com/vincent-herlemont/short.git") url="https://github.com/vincent-herlemont/short" depends=('libgit2') makedepends=('git' 'rust' 'cargo' 'openssl') md5sums=('SKIP') arch=('i686' 'x86_64' 'armv6h' 'armv7h') license=('APACHE' 'MIT') pkgver() { cd ${pkgname}; git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd ${pkgname}; cargo build --release --locked --features disabled_check_new_version } package() { cd ${pkgname}; # sht binary: install -Dm 755 target/release/sht -t "${pkgdir}/usr/bin" # Licenses: install -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m 644 LICENSE-MIT \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" }