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.

40 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=sexpect
  3. PKG_VERSION:=2.3.8
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/clarkwang/sexpect/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=a586283210a76f03b9cce9f09aac28977d6fc3e314355e22c30d6f42524d9a42
  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/sexpect
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=Expect for Shells
  16. URL:=https://github.com/clarkwang/sexpect
  17. endef
  18. define Package/sexpect/description
  19. Sexpect is another implementation of Expect which is specifically designed
  20. for shells. It's lightweight and has no dependency on other packages.
  21. endef
  22. define Build/Compile
  23. $(TARGET_CC) $(TARGET_CFLAGS) -D_GNU_SOURCE $(TARGET_LDFLAGS) -Wall \
  24. $(PKG_BUILD_DIR)/*.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
  25. endef
  26. define Package/sexpect/install
  27. $(INSTALL_DIR) $(1)/usr/bin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sexpect $(1)/usr/bin/
  29. endef
  30. $(eval $(call BuildPackage,sexpect))