Fix build script
This commit is contained in:
parent
09dcc9c44b
commit
b0638e325a
1 changed files with 6 additions and 8 deletions
14
PKGBUILD
14
PKGBUILD
|
@ -13,11 +13,9 @@ conflicts=("${_pkgbase}")
|
|||
source=("git+${url}")
|
||||
md5sums=(SKIP)
|
||||
|
||||
prepare() {
|
||||
cd ${_pkgbase}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${_pkgbase}
|
||||
|
||||
# build binaries
|
||||
cargo build --release --bin macroboard_service
|
||||
cargo build --release --bin macroboard_gui
|
||||
|
@ -25,9 +23,9 @@ build() {
|
|||
|
||||
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
|
||||
install -Dm755 ${_pkgbase}/target/release/macroboard_service "${pkgdir}"/usr/bin/macroboard_service
|
||||
install -Dm755 ${_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
|
||||
}
|
||||
install -Dm644 ${_pkgbase}/macroboard.service "${pkgdir}"/usr/lib/systemd/user/macroboard.service
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue