Magellan Linux

Contents of /branches/R11-unstable/core/cpio/cpio-2.11-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24927 - (show annotations) (download)
Tue Nov 25 02:39:50 2014 UTC (9 years, 5 months ago) by niro
File size: 793 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="cpio"
4 PVER="2.11"
5 PBUILD="r5"
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
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mbuild
19
20 SRC_URI=(
21 gnu://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${PNAME}-${PVER}-gnulib-gets.patch
24 )
25
26 UP2DATE="updatecmd_gnu ${PNAME}"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # fix ftbfs against newer glibc (>=2.16)
34 mpatch ${PNAME}-${PVER}-gnulib-gets.patch || die
35 }
36
37 src_compile()
38 {
39 cd ${SRCDIR}
40
41 mconfigure \
42 --libexecdir=/usr/$(mlibdir)/cpio \
43 --with-rmt=/usr/bin/rmt \
44 --enable-nls \
45 || die
46
47 mmake || die
48 }