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.

75 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=apk
  3. PKG_VERSION:=2.12.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=apk-tools-v$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://gitlab.alpinelinux.org/alpine/apk-tools/-/archive/v$(PKG_VERSION)
  7. PKG_HASH:=b191dbd5019e8933b78b66779412e901e9b88fb12c460a22995e342b3efe83eb
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/apk-tools-v$(PKG_VERSION)
  9. PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
  10. PKG_LICENSE:=GPL-2.0-only
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/apk
  16. SECTION:=utils
  17. CATEGORY:=Utilities
  18. TITLE:=apk package manager
  19. DEPENDS:=+zlib +libopenssl @!arc
  20. URL:=$(PKG_SOURCE_URL)
  21. endef
  22. define Package/alpine-keys
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Alpine apk public signing keys
  26. DEPENDS:=apk
  27. endef
  28. define Package/alpine-repositories
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. TITLE:=Official Alpine repositories
  32. DEPENDS:=apk
  33. endef
  34. MAKE_FLAGS += LUA=no
  35. define Package/apk/install
  36. $(INSTALL_DIR) $(1)/lib/apk/db
  37. $(INSTALL_DIR) $(1)/bin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/apk $(1)/bin/apk
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/lib/* $(1)/usr/lib/
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  42. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/apk.pc \
  43. $(1)/usr/lib/pkgconfig/
  44. $(INSTALL_DIR) $(1)/etc/apk/
  45. echo $(ARCH) > $(1)/etc/apk/arch
  46. touch $(1)/etc/apk/world
  47. endef
  48. define Package/alpine-keys/install
  49. $(INSTALL_DIR) $(1)/etc/apk/keys
  50. $(INSTALL_DATA) ./files/alpine-keys/* $(1)/etc/apk/keys
  51. endef
  52. define Package/alpine-repositories/install
  53. $(INSTALL_DIR) $(1)/etc/apk/keys
  54. $(INSTALL_DATA) ./files/alpine-repositories $(1)/etc/apk/repositories
  55. endef
  56. $(eval $(call BuildPackage,apk))
  57. $(eval $(call BuildPackage,alpine-keys))
  58. $(eval $(call BuildPackage,alpine-repositories))