mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-17 21:03:56 +02:00
![Robert Marko](/assets/img/avatar_default.png)
With the recent move to using ZSTD as the default compression format for packaging git repo clones we must refresh all of the hashes for the packages feed as well. Signed-off-by: Robert Marko <robimarko@gmail.com>
59 lines
1.3 KiB
Makefile
59 lines
1.3 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=luasrcdiet
|
|
PKG_VERSION:=1.0.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=COPYRIGHT
|
|
|
|
PKG_SOURCE_URL:=https://github.com/jirutka/luasrcdiet.git
|
|
PKG_SOURCE_VERSION:=f138fc9359821d9201cd6b57cfa2fcbed5b9af97
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_MIRROR_HASH:=a3e316f273d4daf4bc5caea295d050efb2624125960de593c72b3aef0126583c
|
|
|
|
HOST_BUILD_DEPENDS:=lua/host
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
define Package/luasrcdiet
|
|
SUBMENU:=Lua
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=luasrcdiet
|
|
URL:=https://github.com/jirutka/luasrcdiet
|
|
DEPENDS:=+lua
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/luasrcdiet/description
|
|
Compresses Lua source code by removing unnecessary characters
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/luasrcdiet/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/luasrcdiet $(1)/usr/bin/luasrcdiet
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
$(CP) $(PKG_BUILD_DIR)/luasrcdiet $(1)/usr/lib/lua/
|
|
endef
|
|
|
|
define Host/Compile
|
|
endef
|
|
|
|
define Host/Install
|
|
$(INSTALL_DIR) $(1)/bin
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/bin/luasrcdiet $(1)/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/lib/lua/5.1
|
|
$(CP) $(HOST_BUILD_DIR)/luasrcdiet $(1)/lib/lua/5.1/
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|
|
$(eval $(call BuildPackage,luasrcdiet))
|