Magellan Linux

Contents of /smage/branches/alx07x-unstable/core/cpio/cpio-2.11-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7204 - (show annotations) (download)
Mon Sep 21 08:19:02 2015 UTC (8 years, 7 months ago) by niro
File size: 854 byte(s)
-release branches/alx07x-unstable
1 # $Id$
2
3 PNAME="cpio"
4 PVER="2.11"
5 PBUILD="r7"
6
7 PCAT="app-arch"
8
9 DESCRIPTION="Archiver that handles various types of cpio and tar archives."
10 HOMEPAGE="http://www.gnu.org/software/cpio/"
11
12 DEPEND=">= virtual/glibc"
13 SDEPEND=">= virtual/sed"
14 PROVIDE="virtual/cpio"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 ALX_PKG_KEEP="usr/bin/cpio"
20 sminclude mbuild alx-split
21
22 SRC_URI=(
23 gnu://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${PNAME}-${PVER}-gnulib-gets.patch
26 )
27
28 UP2DATE="updatecmd_gnu ${PNAME}"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 # fix ftbfs against newer glibc (>=2.16)
36 mpatch ${PNAME}-${PVER}-gnulib-gets.patch || die
37 }
38
39 src_compile()
40 {
41 cd ${SRCDIR}
42
43 mconfigure \
44 --libexecdir=/usr/$(mlibdir)/cpio \
45 --with-rmt=/usr/bin/rmt \
46 --enable-nls \
47 || die
48
49 mmake || die
50 }