# Maintainer: Leonardo Bishop pkgname=dotfiles-installer-git pkgdesc="Dotfiles installer" pkgver=0.2.0.r0.gde9c68b pkgrel=1 makedepends=('rust' 'cargo') arch=('x86_64') url="https://git.leonardobishop.net/dotfiles-installer/" license=('GPL-3.0-or-later') conflicts=('dotfiles-installer') provides=("dotfiles-installer=${pkgver}") source=(dotfiles-installer::git+https://git.leonardobishop.net/dotfiles-installer) sha256sums=('SKIP') pkgver() { cd "dotfiles-installer" git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "dotfiles-installer" cargo build --release } package() { install -Dm755 "$srcdir/dotfiles-installer/target/release/dotfiles-installer" "$pkgdir/usr/bin/dotfiles-installer" }