diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-03-19 14:18:11 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-09-11 13:41:45 +0200 |
commit | 3ef362a231f16ed99592001057a4035bd0b057d5 (patch) | |
tree | eefb1d7bc1062ffd9aed0840b2541deaa05f791f | |
parent | cb70713f9ec9f234e5766eaf33cea10f2f2c6537 (diff) |
tools: add new package
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | utils/tools/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/utils/tools/Makefile b/utils/tools/Makefile new file mode 100644 index 0000000..cdf06e0 --- /dev/null +++ b/utils/tools/Makefile @@ -0,0 +1,45 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=tools +PKG_VERSION:=1.0 +PKG_RELEASE:=$(PKT_SOURCE_VERSION) + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=git://github.com/lnslbrty/tools.git +PKG_SOURCE_VERSION:=fcf4582f7967ae17b33bf8649ba55cc73bafc1d3 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz +PKG_MIRROR_HASH:=ccff5d4a64af9bc5d67b838c20ef1c85ce9182cf3db69c87755535a0fd972843 +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) + +PKG_MAINTAINER:=Toni Uhlig <matzeton@gmail.com> + +include $(INCLUDE_DIR)/package.mk + +define Package/tools + SECTION:=utils + CATEGORY:=Utilities + TITLE:=My Tools + URL:=https://github.com/lnslbrty/tools + DEPENDS:=+libncurses +endef + +define Package/tools/description + My Tools +endef + +define Build/Compile + rm -rf $(PKG_INSTALL_DIR) + mkdir -p $(PKG_INSTALL_DIR) + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC="$(TARGET_CC) $(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" \ + MAKE_NCURSES=1 PREFIX="$(1)" +endef + +define Package/tools/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) \ + $(addprefix $(PKG_BUILD_DIR)/,aes asciihexer dummyshell suidcmd scrambler gol) \ + $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,tools)) |