mirror of
https://github.com/coolsnowwolf/packages
synced 2025-01-09 04:37:41 +08:00
pigz: add package
Signed-off-by: Ken Wong <xinxijishuwyq@gmail.com>
This commit is contained in:
parent
192b99ccd8
commit
02fdb997e4
35
utils/pigz/Makefile
Normal file
35
utils/pigz/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pigz
|
||||
PKG_VERSION:=2.4
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://zlib.net/pigz/
|
||||
PKG_HASH:=a4f816222a7b4269bd232680590b579ccc72591f1bb5adafcd7208ca77e14f73
|
||||
|
||||
PKG_MAINTAINER:=Ken Wong <xinxijishuwyq@gmail.com>
|
||||
PKG_LICENSE:=CUSTOM
|
||||
PKG_LICENSE_FILES:=README
|
||||
PKG_CPE_ID:=cpe:/a:zlib:pigz
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/pigz
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
SUBMENU:=Compression
|
||||
TITLE:=pigz
|
||||
URL:=https://zlib.net/pigz
|
||||
DEPENDS:=+zlib
|
||||
endef
|
||||
|
||||
define Package/pigz/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pigz $(1)/usr/bin/pigz
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,pigz))
|
||||
|
14
utils/pigz/patches/001.patch
Normal file
14
utils/pigz/patches/001.patch
Normal file
@ -0,0 +1,14 @@
|
||||
--- a/Makefile 2019-05-22 19:54:23.980451289 +0800
|
||||
+++ b/Makefile 2019-06-10 10:32:58.054675929 +0800
|
||||
@@ -1,7 +1,7 @@
|
||||
-CC=gcc
|
||||
-CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas
|
||||
-LDFLAGS=
|
||||
-LIBS=-lm -lpthread -lz
|
||||
+CC?=gcc
|
||||
+CFLAGS?=-O3 -Wall -Wextra -Wno-unknown-pragmas
|
||||
+LDFLAGS?=
|
||||
+LIBS?=-lm -lpthread -lz
|
||||
ZOPFLI=zopfli/src/zopfli/
|
||||
ZOP=deflate.o blocksplitter.o tree.o lz77.o cache.o hash.o util.o squeeze.o katajainen.o
|
||||
|
Loading…
Reference in New Issue
Block a user