mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-14 20:48:17 +08:00
🗽 Sync 2026-11-11 15:31:38
This commit is contained in:
1 parent
da9e4bea36
commit
2e3c0a9b33
189 files changed
+29797
-10433
No files matched your search
+21
-10
@@ -11,7 +11,7 @@ PKG_ARCH_kai:=$(ARCH)
|
||||
|
||||
PKG_NAME:=kai
|
||||
PKG_VERSION:=0.0.28
|
||||
PKG_RELEASE:=12
|
||||
PKG_RELEASE:=13
|
||||
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/istoreos/istoreos-app-hub/releases/download/kai-runtime-v$(PKG_VERSION)/
|
||||
PKG_HASH:=skip
|
||||
@@ -39,16 +39,28 @@ define Package/$(PKG_NAME)/conffiles
|
||||
/etc/config/kai
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/postinst
|
||||
#!/bin/sh
|
||||
# Compatibility entry for desktops which only scan the old directory.
|
||||
root="$${IPKG_INSTROOT:-}"
|
||||
legacy="$${root}/usr/share/linkeasefull/desktop-apps.d/05-kai-plugin.json"
|
||||
if [ ! -e "$${legacy}" ] && [ ! -L "$${legacy}" ]; then
|
||||
mkdir -p "$${legacy%/*}"
|
||||
ln -s /usr/share/kai/kai-plugin.json "$${legacy}" || exit $$?
|
||||
fi
|
||||
exit 0
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/prerm
|
||||
#!/bin/sh
|
||||
if [ "$${IPKG_INSTROOT}" = "" ]; then
|
||||
if [ "$$(readlink /usr/share/linkease/apps.d/05-kai-plugin.json 2>/dev/null)" = "/usr/share/kai/kai-plugin.json" ]; then
|
||||
rm -f /usr/share/linkease/apps.d/05-kai-plugin.json
|
||||
root="$${IPKG_INSTROOT:-}"
|
||||
for directory in /usr/share/linkease/apps.d /usr/share/linkeasefull/desktop-apps.d; do
|
||||
registration="$${root}$${directory}/05-kai-plugin.json"
|
||||
if [ "$$(readlink "$${registration}" 2>/dev/null)" = "/usr/share/kai/kai-plugin.json" ]; then
|
||||
rm -f "$${registration}"
|
||||
fi
|
||||
if [ "$$(readlink /usr/share/linkeasefull/desktop-apps.d/05-kai-plugin.json 2>/dev/null)" = "/usr/share/kai/kai-plugin.json" ]; then
|
||||
rm -f /usr/share/linkeasefull/desktop-apps.d/05-kai-plugin.json
|
||||
fi
|
||||
fi
|
||||
done
|
||||
rmdir "$${root}/usr/share/linkeasefull/desktop-apps.d" 2>/dev/null || true
|
||||
exit 0
|
||||
endef
|
||||
|
||||
@@ -59,7 +71,7 @@ define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/libexec $(1)/etc/init.d $(1)/etc/config $(1)/usr/share/kai/www $(1)/usr/share/linkease/apps.d $(1)/usr/share/linkeasefull/desktop-apps.d
|
||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/libexec $(1)/etc/init.d $(1)/etc/config $(1)/usr/share/kai/www $(1)/usr/share/linkease/apps.d
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kai.$(PKG_ARCH_kai) $(1)/usr/sbin/kai_bin
|
||||
$(INSTALL_BIN) ./files/kai-session-launch $(1)/usr/libexec/kai-session-launch
|
||||
$(INSTALL_BIN) ./files/kai.init $(1)/etc/init.d/kai
|
||||
@@ -67,7 +79,6 @@ define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DATA) ./files/kai-plugin.json $(1)/usr/share/kai/kai-plugin.json
|
||||
$(INSTALL_DATA) ./files/logo.png $(1)/usr/share/kai/www/logo.png
|
||||
ln -sf /usr/share/kai/kai-plugin.json $(1)/usr/share/linkease/apps.d/05-kai-plugin.json
|
||||
ln -sf /usr/share/kai/kai-plugin.json $(1)/usr/share/linkeasefull/desktop-apps.d/05-kai-plugin.json
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
Reference in new issue
Block a user