MacroBoard-rs/PKGBUILD

36 lines
1.1 KiB
Text
Raw Permalink Normal View History

2022-07-19 07:41:01 +00:00
# Maintainer: hodasemi <michaelh.95 at t-online dot de>
2022-07-19 07:40:23 +00:00
_pkgbase=MacroBoard-rs
pkgname="${_pkgbase}"
pkgver=0.1
pkgrel=1
pkgdesc="Gui and service for Arduino based MacroBoard"
arch=('x86_64')
2023-01-16 13:33:08 +00:00
url="https://gavania.de/hodasemi/${_pkgbase}"
2022-07-19 07:40:23 +00:00
license=('GPL-3.0')
makedepends=('rust')
depends=('gtk3')
conflicts=("${_pkgbase}")
source=("git+${url}")
md5sums=(SKIP)
2022-07-20 07:41:57 +00:00
build() {
2022-07-19 07:40:23 +00:00
cd ${_pkgbase}
# build binaries
cargo build --release --bin macroboard_service
cargo build --release --bin macroboard_gui
}
package() {
# copy binaries
2022-07-20 07:41:57 +00:00
install -Dm755 ${_pkgbase}/target/release/macroboard_service "${pkgdir}"/usr/bin/macroboard_service
install -Dm755 ${_pkgbase}/target/release/macroboard_gui "${pkgdir}"/usr/bin/macroboard_gui
2022-07-19 07:40:23 +00:00
# copy systemd file
2022-07-20 07:41:57 +00:00
install -Dm644 ${_pkgbase}/macroboard.service "${pkgdir}"/usr/lib/systemd/user/macroboard.service
2022-07-20 08:45:10 +00:00
# copy desktop file and icon
install -Dm644 ${_pkgbase}/macroboard.desktop "${pkgdir}"/usr/share/applications/macroboard.desktop
install -Dm644 ${_pkgbase}/macroboard_icon.png "${pkgdir}"/usr/share/macroboard/macroboard_icon.png
2022-07-20 07:41:57 +00:00
}