projects/guix·blob java-team · refs

56 lines · 2.2 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Nikita Karetnikov <[email protected]>
3;;; Copyright © 2014 Mark H Weaver <[email protected]>
4;;; Copyright © 2020 Marius Bakke <[email protected]>
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages cpio)
22 #:use-module (guix licenses)
23 #:use-module (gnu packages)
24 #:use-module (gnu packages autotools)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu))
28
29(define-public cpio
30 (package
31 (name "cpio")
32 (version "2.15")
33 (source (origin
34 (method url-fetch)
35 (uri (string-append "mirror://gnu/cpio/cpio-"
36 version ".tar.bz2"))
37 (sha256
38 (base32
39 "1nvmj2mc3nagpig75sgzvkqgzg1p01wgnlw54v4ix6ijgjwi0xlk"))
40 (modules '((guix build utils)))
41 (snippet
42 '(begin
43 ;; Remove superfluous declaration that trips GCC 10.
44 (substitute* "src/global.c"
45 (("char \\*program_name;")
46 ""))))))
47 (build-system gnu-build-system)
48 (home-page "https://www.gnu.org/software/cpio/")
49 (synopsis "Manage cpio and tar file archives")
50 (description
51 "GNU cpio copies files into or out of cpio or tar archives. Indeed,
52many formats are supported, including legacy formats. The format is
53determined automatically by the program and is handled appropriately.
54Furthermore, the location of the archive is not important. It can be another
55file on the drive, a tape, or data on a pipe.")
56 (license gpl3+)))