Created
January 27, 2022 03:11
-
-
Save idoop/b41a19607f259e16c7d405dbde43b3b1 to your computer and use it in GitHub Desktop.
pigz for OpenWRT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include $(TOPDIR)/rules.mk | |
PKG_NAME:=pigz | |
PKG_VERSION:=master | |
PKG_RELEASE:=1 | |
PKG_SOURCE_PROTO:=git | |
PKG_SOURCE_URL:=https://github.com/idoop/pigz.git | |
PKG_SOURCE_DATE:=2022-01-26 | |
PKG_SOURCE_VERSION:=3aef2d014c01aa30d0fe16aa7052451972f72d66 | |
PKG_MAINTAINER:=ChenYang <[email protected]> | |
PKG_LICENSE:=as-is | |
PKG_LICENSE_FILES:=README | |
PKG_CPE_ID:=cpe:/a:zlib:pigz | |
PKG_BUILD_PARALLEL:=1 | |
PKG_BUILD_DEPENDS:=zlib | |
PKG_INSTALL:=1 | |
include $(INCLUDE_DIR)/package.mk | |
include $(INCLUDE_DIR)/cmake.mk | |
define Package/$(PKG_NAME) | |
SECTION:=utils | |
CATEGORY:=Utilities | |
SUBMENU:=Compression | |
TITLE:=pigz | |
URL:=https://zlib.net/pigz | |
DEPENDS:=+zlib | |
endef | |
define Package/$(PKG_NAME)/description | |
pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data. | |
endef | |
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include | |
CMAKE_OPTIONS = \ | |
-DZLIB_IMPLEMENTATION=Custom \ | |
-DZLIB_ROOT=$(STAGING_DIR)/usr/lib \ | |
define Package/$(PKG_NAME)/install | |
$(INSTALL_DIR) $(1)/usr/bin | |
$(CP) $(PKG_BUILD_DIR)/bin/$(PKG_NAME) $(1)/usr/bin/$(PKG_NAME) | |
endef | |
$(eval $(call BuildPackage,$(PKG_NAME))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment