From 9720104c430b8c72a705f8c898a6922b9fc416fb Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 15 Sep 2019 20:36:12 +0200 Subject: gnu: Add ncompress. * gnu/packages/compression.scm (ncompress): New variable. * gnu/packages/patches/compress-fix-softlinks.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. --- gnu/packages/compression.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages/compression.scm') diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 89dcc34e21..bb1c5b625c 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2018 Joshua Sierles, Nextjournal ;;; Copyright © 2018, 2019 Pierre Neidhardt ;;; Copyright © 2019 Nicolas Goaziou +;;; Copyright © 2019 Jan (janneke) Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -2110,3 +2111,32 @@ at run time, and must be installed separately.") archives generated by @command{makeself} or @command{mojo} without running the possibly untrusted extraction shell script.") (license license:gpl3+)))) + +(define-public ncompress + (package + (name "ncompress") + (version "4.2.4.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vapier/ncompress") + (commit (string-append "v" version)))) + (patches (search-patches "ncompress-fix-softlinks.patch")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0s3ik7k5a5vzcfiayhsxrc87drg3l425aqapspmw5py91b9jhc8r")))) + (arguments + '(#:make-flags (list "CC=gcc" + (string-append "BINDIR=" %output "/bin") + (string-append "MANDIR=" %output "/share/man/man1")) + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (build-system gnu-build-system) + (home-page "https://github.com/vapier/ncompress/") + (synopsis "Original Lempel-Ziv compress/uncompress programs") + (description "(N)compress provides the original compress and uncompress +programs that used to be the de facto UNIX standard for compressing and +uncompressing files. These programs implement a fast, simple Lempel-Ziv (LZW) +file compression algorithm.") + (license license:gpl2+))) -- cgit v1.2.3