You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
966 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=passh
  3. PKG_VERSION:=1.0.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/clarkwang/passh/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=f6efc7127515b3716108fa28439caca561d16923404bb1a8f734b41340b3f14e
  8. PKG_MAINTAINER:=Clark Wang <dearvoid@gmail.com>
  9. PKG_LICENSE:=GPL-3.0-only
  10. PKG_LICENSE_FILES:=LICENSE
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/passh
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=an sshpass alternative
  16. URL:=https://github.com/clarkwang/passh
  17. endef
  18. define Package/passh/description
  19. Passh is an sshpass alternative.
  20. endef
  21. define Build/Compile
  22. $(TARGET_CC) $(TARGET_CFLAGS) -D_GNU_SOURCE -Wall $(TARGET_LDFLAGS) \
  23. $(PKG_BUILD_DIR)/passh.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
  24. endef
  25. define Package/passh/install
  26. $(INSTALL_DIR) $(1)/usr/bin
  27. $(INSTALL_BIN) $(PKG_BUILD_DIR)/passh $(1)/usr/bin/
  28. endef
  29. $(eval $(call BuildPackage,passh))