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.

46 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2018 Jeffery To
  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:=golang-github-dchest-siphash
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/dchest/siphash.git
  12. PKG_SOURCE_VERSION:=4ebf1de738443ea7f45f02dc394c4df1942a126d
  13. PKG_SOURCE_DATE:=20160831
  14. PKG_MIRROR_HASH:=57da99437a6dba8c0b34bb09da48c0b8b1e70391ae0e3563453206794defe051
  15. PKG_LICENSE:=CC0-1.0
  16. PKG_LICENSE_FILES:=README.md
  17. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  18. PKG_BUILD_DEPENDS:=golang/host
  19. PKG_BUILD_PARALLEL:=1
  20. GO_PKG:=github.com/dchest/siphash
  21. GO_PKG_SOURCE_ONLY:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. include ../golang-package.mk
  24. define Package/golang-github-dchest-siphash-dev
  25. $(call GoPackage/GoSubMenu)
  26. TITLE:=Go implementation of SipHash-2-4
  27. URL:=https://github.com/dchest/siphash
  28. DEPENDS:=$(GO_ARCH_DEPENDS)
  29. PKGARCH:=all
  30. endef
  31. define Package/golang-github-dchest-siphash-dev/description
  32. SipHash-2-4 is a pseudorandom function (a.k.a. keyed hash function)
  33. optimized for speed on short messages.
  34. endef
  35. $(eval $(call GoSrcPackage,golang-github-dchest-siphash-dev))
  36. $(eval $(call BuildPackage,golang-github-dchest-siphash-dev))