Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argonforty-device: add package (support for the Argon ONE cases) #9662

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions packages/addons/script/argonforty-device/package.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2025-present Team LibreELEC (https://libreelec.tv)

PKG_NAME="argonforty-device"
PKG_VERSION="1.1.5"
PKG_SHA256="c8741aa97ae5f9ef3159d03f1e2a5e6ea886eb8dec5797aeee1c68a247734f09"
PKG_REV="0"
PKG_ARCH="arm aarch64"
PKG_LICENSE="MIT"
PKG_SITE="https://github.com/HungerHa/libreelec_package_argonforty-device"
PKG_URL="https://github.com/HungerHa/libreelec_package_argonforty-device/archive/refs/tags/v$PKG_VERSION.tar.gz"
PKG_SECTION="script.service"
PKG_SHORTDESC="ArgonForty Device Configuration"
PKG_LONGDESC="Support for the RPi4/5 Argon ONE cases. Installs services to manage ArgonForty devices, such as power button, fan speed and Argon REMOTE. This also activates I2C, IR receiver and UART (requires a one-time restart)."
PKG_TOOLCHAIN="manual"
PKG_DEPENDS_TARGET="xmlstarlet:host 7-zip:host"
PKG_IS_ADDON="yes"
PKG_ADDON_NAME="ArgonForty Device Configuration"
PKG_ADDON_TYPE="xbmc.service"
PKG_ADDON_PROJECTS="RPi ARM"

addon() {
mkdir -p ${ADDON_BUILD}/${PKG_ADDON_ID}
cp -P ${PKG_BUILD}/source/addon.xml ${ADDON_BUILD}/${PKG_ADDON_ID}
cp -P ${PKG_BUILD}/changelog.txt ${ADDON_BUILD}/${PKG_ADDON_ID}
cp -P ${PKG_BUILD}/README.md ${ADDON_BUILD}/${PKG_ADDON_ID}
cp -P ${PKG_BUILD}/source/LICENSE ${ADDON_BUILD}/${PKG_ADDON_ID}
cp -P ${PKG_BUILD}/source/default.py ${ADDON_BUILD}/${PKG_ADDON_ID}
cp -P ${PKG_BUILD}/source/main.py ${ADDON_BUILD}/${PKG_ADDON_ID}
cp -PR ${PKG_BUILD}/source/resources ${ADDON_BUILD}/${PKG_ADDON_ID}
}

post_install_addon() {
rm ${ADDON_BUILD}/${PKG_ADDON_ID}/resources/fanart.png
}