# Maintainer: Aaron DeVore # Co-maintainer: Dan Beste pkgname=dybuk-git reponame=dybuk execname=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=( "${execname}" ) conflicts=( "${execname}" ) source=( 'git+https://github.com/Ticki/dybuk.git' ) sha256sums=( 'SKIP' ) pkgver() { cd "${srcdir}/${reponame}" || exit 1 printf "r%s.%s" \ "$(git rev-list --count HEAD)" \ "$(git rev-parse --short HEAD)" } build() { cd "${srcdir}/${reponame}" || exit 1 cargo build --release } package() { cd "${srcdir}/${_pkgname}" || exit 1 install -m755 \ -D "target/release/dybuk" "${pkgdir}/usr/bin/${_pkgname}" install -m644 \ -D "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" }