mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-16 13:33:02 +08:00
57 lines
2.0 KiB
Makefile
57 lines
2.0 KiB
Makefile
#
|
|
# Copyright (C) 2008-2019 Jerrykuku
|
|
#
|
|
# This is free software, licensed under the Apache License, Version 2.0 .
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
LUCI_TITLE:=Argon Theme
|
|
# Older SDKs require the coreutils parent menu to enable coreutils-timeout.
|
|
# Virtual wget providers include wget-nossl, but every wallpaper API uses HTTPS.
|
|
LUCI_DEPENDS:=+luci-base +wget-ssl +ca-bundle +jsonfilter +ucode-mod-math +flock +coreutils +coreutils-timeout
|
|
# Keep existing translation package names and the argon-config message domain.
|
|
LUCI_BASENAME:=argon-config
|
|
PKG_VERSION:=3.1.4
|
|
PKG_RELEASE:=43
|
|
PKG_LICENSE:=Apache-2.0 MIT
|
|
|
|
# LuCI derives translations independently of the theme version. Keep release
|
|
# builds deterministic even when the package directory has no Git history.
|
|
ifneq ($(CONFIG_USE_APK),)
|
|
PKG_PO_VERSION:=$(PKG_VERSION)-r$(PKG_RELEASE)
|
|
else
|
|
# The v3.0.0 IPKs shipped as "unknown", which sorts above numeric versions.
|
|
# Keep this prefix for future IPK translations so a normal install upgrades it.
|
|
PKG_PO_VERSION:=v$(PKG_VERSION)
|
|
endif
|
|
|
|
CONFIG_LUCI_CSSTIDY:=
|
|
# Ship template source across stable and snapshot runtimes. Precompiled
|
|
# bytecode would require the SDK's ucode format (see issue #715).
|
|
# Disable this package's build step as well, avoiding LuCI's opt-out warning.
|
|
CONFIG_LUCI_UTMIN:=
|
|
LUCI_MINIFY_UT:=0
|
|
|
|
define Package/luci-theme-argon/conffiles
|
|
/etc/config/argon
|
|
endef
|
|
|
|
# Some firmware builds bundle translations into the theme instead of separate
|
|
# language packages. Preserve them even when an older updater installs us alone.
|
|
define Package/luci-theme-argon/preinst
|
|
#!/bin/sh
|
|
root="$${IPKG_INSTROOT}"
|
|
for catalog in "$$root"/usr/lib/lua/luci/i18n/argon-config.*.lmo "$$root"/usr/lib/lua/luci/i18n/argon.*.lmo; do
|
|
[ -f "$$catalog" ] && [ ! -L "$$catalog" ] || continue
|
|
umask 077
|
|
mkdir -p "$$root/etc/argon-config-migration/i18n" || exit 1
|
|
cp -p "$$catalog" "$$root/etc/argon-config-migration/i18n/$${catalog##*/}" || exit 1
|
|
done
|
|
exit 0
|
|
endef
|
|
|
|
include $(TOPDIR)/feeds/luci/luci.mk
|
|
|
|
# call BuildPackage - OpenWrt buildroot signature
|