Advertisement
Guest User

p7zip

a guest
Jan 28th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. diff --git a/p7zip/Makefile b/p7zip/Makefile
  2. index a4684a0..34f9551 100644
  3. --- a/p7zip/Makefile
  4. +++ b/p7zip/Makefile
  5. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
  6.  
  7. PKG_NAME:=p7zip
  8. PKG_VERSION:=16.02
  9. -PKG_RELEASE:=2
  10. +PKG_RELEASE:=3
  11.  
  12. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_src_all.tar.bz2
  13. PKG_SOURCE_URL:=@SF/p7zip/p7zip/$(PKG_VERSION)
  14. @@ -33,9 +33,27 @@ define Package/p7zip/description
  15. Command line version of 7-zip for POSIX systems.
  16. endef
  17.  
  18. +define Build/Compile
  19. + $(MAKE) -C $(PKG_BUILD_DIR) \
  20. + CC="$(TARGET_CC)" \
  21. + CXX="$(TARGET_CXX)" \
  22. + LOCAL_LIBS="$(TARGET_LDFLAGS)" \
  23. + OPTFLAGS="$(TARGET_CFLAGS) -pthread" \
  24. + DEST_HOME="$(PKG_INSTALL_DIR)/opt" \
  25. + all4 install
  26. +endef
  27. +
  28. define Package/p7zip/install
  29. $(INSTALL_DIR) $(1)/opt/bin
  30. - $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/7za $(1)/opt/bin
  31. + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/bin/7z{,a,r} $(1)/opt/bin
  32. + ###
  33. + $(SED) 's,$(PKG_INSTALL_DIR),,' $(1)/opt/bin/*
  34. +
  35. + $(INSTALL_DIR) $(1)/opt/lib/p7zip/Codecs
  36. + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/lib/p7zip/7z{,a,Con*,r} $(1)/opt/lib/p7zip
  37. + $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/{Client7z,LzmaCon} $(1)/opt/lib/p7zip
  38. + $(CP) $(PKG_INSTALL_DIR)/opt/lib/p7zip/7z.so $(1)/opt/lib/p7zip
  39. + $(CP) $(PKG_INSTALL_DIR)/opt/lib/p7zip/Codecs/*.so $(1)/opt/lib/p7zip/Codecs
  40. endef
  41.  
  42. $(eval $(call BuildPackage,p7zip))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement