# Maintainer: tdolega _pkgbase=MacroBoard-rs pkgname="${_pkgbase}" pkgver=0.1 pkgrel=1 pkgdesc="Gui and service for Arduino based MacroBoard" arch=('x86_64') url="http://gavania.de:80/hodasemi/${_pkgbase}" license=('GPL-3.0') makedepends=('rust') depends=('gtk3') conflicts=("${_pkgbase}") source=("git+${url}") md5sums=(SKIP) prepare() { cd ${_pkgbase} } build() { # build binaries cargo build --release --bin macroboard_service cargo build --release --bin macroboard_gui } package() { # copy binaries install -Dm744 ${_pkgbase}/target/release/macroboard_service "${pkgdir}"/usr/bin/macroboard_service install -Dm744 ${_pkgbase}/target/release/macroboard_gui "${pkgdir}"/usr/bin/macroboard_gui # copy systemd file install -Dm644 ${_pkgbase}/macroboard.service "${pkgdir}"/usr/lib/systemd/system/macroboard.service }