# Maintainer: Matt Harrison # Maintained at: https://github.com/matt-h/aur-pkgbuilds pkgname='glint' pkgdesc='A tool for creating git commits in the Conventional Commits style' pkgver='6.3.4' pkgrel='1' arch=('x86_64') url='https://github.com/brigand/glint' license=('MIT') depends=('gcc-libs') makedepends=('rust') checkdepends=('rust') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/brigand/glint/archive/v${pkgver}.tar.gz") sha256sums=('512d12a397856edc2a5848f065fc755ed30a4112fbb0f78db5f1e2c499ade570') build() { cd "$pkgname-$pkgver" cargo build --release --locked } check() { cd "$pkgname-$pkgver" cargo test --locked } package() { cd "$pkgname-$pkgver" install -Dm755 "target/release/glint" "$pkgdir/usr/bin/$pkgname" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }