# Maintainer: Aaron DeVore # Co-maintainer: Dan Beste pkgname='dybuk-git' _gitname='dybuk' pkgver=r37.ef12906 pkgrel=1 pkgdesc='Prettify the ugly Rustc messages' arch=('i686' 'x86_64') url='https://github.com/Ticki/dybuk' license=('MIT') makedepends=('cargo' 'git' 'rust') provides=("${_gitname}") conflicts=("${_gitname}") source=('git+https://github.com/Ticki/dybuk.git') sha256sums=('SKIP') pkgver() { cd "${_gitname}" printf "r%s.%s" \ "$(git rev-list --count HEAD)" \ "$(git rev-parse --short HEAD)" } build() { cd "${_gitname}" cargo build --release } package() { cd "${_gitname}" install -m 755 \ -D target/release/dybuk "${pkgdir}/usr/bin/${_gitname}" install -m 644 \ -D LICENSE "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE" } # vim: ts=2 sw=2 et: