mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-27 06:12:51 +08:00
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2026 iStoreOS
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v3.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=luci-app-linkeasefull-embed
|
|
PKG_VERSION:=1.2.0
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_USE_MIPS16:=0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=luci
|
|
CATEGORY:=LuCI
|
|
SUBMENU:=3. Applications
|
|
TITLE:=LinkEaseFull LuCI desktop embed
|
|
DEPENDS:=+linkeasefull +luci-base +luci-theme-istorenas
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
Register OpenWrt LuCI as a LinkEaseFull desktop module and provide embedded-mode assets.
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/prerm
|
|
#!/bin/sh
|
|
set -e
|
|
root="$${IPKG_INSTROOT:-}"
|
|
registration="$${root}/usr/share/linkeasefull/desktop-apps.d/15-openwrt-luci.json"
|
|
if [ "$$(readlink "$${registration}" 2>/dev/null)" = "/usr/share/linkeasefull/openwrt-luci/openwrt-luci.json" ]; then
|
|
rm -f "$${registration}"
|
|
fi
|
|
exit 0
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(INSTALL_DIR) $(1)/usr/share/linkeasefull/openwrt-luci $(1)/usr/share/linkeasefull/desktop-apps.d
|
|
$(INSTALL_DIR) $(1)/www/luci-static/linkeasefull-embed
|
|
$(INSTALL_DATA) ./files/openwrt-luci/openwrt-luci.json $(1)/usr/share/linkeasefull/openwrt-luci/openwrt-luci.json
|
|
$(INSTALL_DATA) ./files/openwrt-luci/openwrt.svg $(1)/usr/share/linkeasefull/openwrt-luci/openwrt.svg
|
|
$(INSTALL_DATA) ./files/www/embed.css $(1)/www/luci-static/linkeasefull-embed/embed.css
|
|
$(INSTALL_DATA) ./files/www/embed-prelude.js $(1)/www/luci-static/linkeasefull-embed/embed-prelude.js
|
|
ln -sf /usr/share/linkeasefull/openwrt-luci/openwrt-luci.json $(1)/usr/share/linkeasefull/desktop-apps.d/15-openwrt-luci.json
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|