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.3 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_VERSION:=1.2.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/dchest/siphash/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=90c5e8ba62b64b2f76ed58c87dd50456171610049bef51fd71bc593c1744fad2
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/siphash-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  16. PKG_LICENSE:=CC0-1.0
  17. PKG_LICENSE_FILES:=README.md
  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))