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.

63 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.62
  10. PKG_RELEASE:=1
  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:=812ac4e9e09dbfb812c64fb1929ed5275c279312d78e3fe1c30b01380c902db9
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
  15. PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_BUILD_PARALLEL:=0
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/moreutils
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=additional Unix utilities
  25. URL:=https://joeyh.name/code/moreutils/
  26. DEPENDS:=+perl +perlbase-file +perlbase-getopt +perlbase-io +perlbase-ipc +perlbase-posix
  27. endef
  28. define Package/moreutils/description
  29. This is a growing collection of the Unix tools that nobody thought
  30. to write long ago, when Unix was young.
  31. .
  32. So far, it includes the following utilities:
  33. - chronic: runs a command quietly unless it fails
  34. - combine: combine the lines in two files using boolean operations
  35. - errno: look up errno names and descriptions
  36. - ifdata: get network interface info without parsing ifconfig output
  37. - ifne: run a program if the standard input is not empty
  38. - isutf8: check if a file or standard input is utf-8
  39. - lckdo: execute a program with a lock held
  40. - mispipe: pipe two commands, returning the exit status of the first
  41. - parallel: run multiple jobs at once
  42. - pee: tee standard input to pipes
  43. - sponge: soak up standard input and write to a file
  44. - ts: timestamp standard input
  45. - vidir: edit a directory in your text editor
  46. - vipe: insert a text editor into a pipe
  47. - zrun: automatically uncompress arguments to command
  48. endef
  49. define Package/moreutils/install
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  52. endef
  53. $(eval $(call BuildPackage,moreutils))