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.

62 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2016 Nikil Mehta <nikil.mehta@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=moreutils
  9. PKG_VERSION:=0.63
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://git.kitenet.net/index.cgi/moreutils.git/snapshot
  13. PKG_HASH:=4fc86d56a8a276a0cec71cdabda5ccca50c7a44a2a1ccd888476741d1ce6831d
  14. PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_PARALLEL:=0
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/moreutils
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=additional Unix utilities
  24. URL:=https://joeyh.name/code/moreutils/
  25. DEPENDS:=+perl +perlbase-file +perlbase-getopt +perlbase-io +perlbase-ipc +perlbase-posix
  26. endef
  27. define Package/moreutils/description
  28. This is a growing collection of the Unix tools that nobody thought
  29. to write long ago, when Unix was young.
  30. .
  31. So far, it includes the following utilities:
  32. - chronic: runs a command quietly unless it fails
  33. - combine: combine the lines in two files using boolean operations
  34. - errno: look up errno names and descriptions
  35. - ifdata: get network interface info without parsing ifconfig output
  36. - ifne: run a program if the standard input is not empty
  37. - isutf8: check if a file or standard input is utf-8
  38. - lckdo: execute a program with a lock held
  39. - mispipe: pipe two commands, returning the exit status of the first
  40. - parallel: run multiple jobs at once
  41. - pee: tee standard input to pipes
  42. - sponge: soak up standard input and write to a file
  43. - ts: timestamp standard input
  44. - vidir: edit a directory in your text editor
  45. - vipe: insert a text editor into a pipe
  46. - zrun: automatically uncompress arguments to command
  47. endef
  48. define Package/moreutils/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  51. endef
  52. $(eval $(call BuildPackage,moreutils))