Browse Source

pigz: add package

Signed-off-by: Ken Wong <xinxijishuwyq@gmail.com>
lilik-openwrt-22.03
Ken Wong 6 years ago
parent
commit
703ff49d20
2 changed files with 50 additions and 0 deletions
  1. +36
    -0
      utils/pigz/Makefile
  2. +14
    -0
      utils/pigz/patches/001.patch

+ 36
- 0
utils/pigz/Makefile View File

@ -0,0 +1,36 @@
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
PKG_INSTALL:=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
- 0
utils/pigz/patches/001.patch View File

@ -0,0 +1,14 @@
--- a/Makefile 2019-05-22 19:54:23.980451289 +0800
+++ b/Makefile 2019-05-09 14:20:36.269505910 +0800
@@ -1,4 +1,3 @@
-CC=gcc
CFLAGS=-O3 -Wall -Wextra -Wno-unknown-pragmas
LDFLAGS=
LIBS=-lm -lpthread -lz
@@ -102,3 +101,6 @@ all: pigz pigzj pigzt pigzn docs
clean:
@rm -f *.o pigz unpigz pigzj pigzn pigzt pigz.c.gz pigz.c.zz pigz.c.zip
+
+install:
+ true

Loading…
Cancel
Save