Fix build script

This commit is contained in:
hodasemi 2022-07-20 09:41:57 +02:00
parent 09dcc9c44b
commit b0638e325a

View file

@ -13,11 +13,9 @@ conflicts=("${_pkgbase}")
source=("git+${url}") source=("git+${url}")
md5sums=(SKIP) md5sums=(SKIP)
prepare() {
cd ${_pkgbase}
}
build() { build() {
cd ${_pkgbase}
# build binaries # build binaries
cargo build --release --bin macroboard_service cargo build --release --bin macroboard_service
cargo build --release --bin macroboard_gui cargo build --release --bin macroboard_gui
@ -25,9 +23,9 @@ build() {
package() { package() {
# copy binaries # copy binaries
install -Dm744 ${_pkgbase}/target/release/macroboard_service "${pkgdir}"/usr/bin/macroboard_service install -Dm755 ${_pkgbase}/target/release/macroboard_service "${pkgdir}"/usr/bin/macroboard_service
install -Dm744 ${_pkgbase}/target/release/macroboard_gui "${pkgdir}"/usr/bin/macroboard_gui install -Dm755 ${_pkgbase}/target/release/macroboard_gui "${pkgdir}"/usr/bin/macroboard_gui
# copy systemd file # copy systemd file
install -Dm644 ${_pkgbase}/macroboard.service "${pkgdir}"/usr/lib/systemd/system/macroboard.service install -Dm644 ${_pkgbase}/macroboard.service "${pkgdir}"/usr/lib/systemd/user/macroboard.service
} }