2022-09-01 23:01:42 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2020-present Fewtarius
|
|
|
|
|
|
|
|
PKG_NAME="rinputer"
|
|
|
|
PKG_VERSION="74033c3"
|
2022-09-25 15:55:20 +00:00
|
|
|
PKG_LICENSE="BSD 4-Clause-modified"
|
2022-09-01 23:01:42 +00:00
|
|
|
PKG_SITE="https://github.com/R-ARM/Rinputer3"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain rust cargo"
|
|
|
|
PKG_LONGDESC="Rinputer3, this time in Rust."
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
cargo build --release
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
2022-09-02 19:27:01 +00:00
|
|
|
cp target/release/rinputer3 ${INSTALL}/usr/bin
|
2022-09-01 23:01:42 +00:00
|
|
|
chmod 0755 ${INSTALL}/usr/bin/*
|
|
|
|
mkdir -p ${INSTALL}/etc
|
|
|
|
cp rinputer3.ron ${INSTALL}/etc/
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/system.d
|
|
|
|
cp Rinputer3.service ${INSTALL}/usr/lib/system.d/
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
enable_service Rinputer3.service
|
|
|
|
}
|