Magellan Linux

Contents of /smage/trunk/core/cpio/cpio-2.11-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4521 - (show annotations) (download)
Fri Mar 15 10:23:20 2013 UTC (11 years, 2 months ago) by niro
File size: 831 byte(s)
auto added: ver bump to 2.11-r4
1 # $Id$
2
3 PNAME="cpio"
4 PVER="2.11"
5 PBUILD="r4"
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 ALX_PKG_KEEP="usr/bin/cpio"
19 sminclude mbuild alx-split
20
21 SRC_URI=(
22 gnu://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${PNAME}-${PVER}-gnulib-gets.patch
25 )
26
27 UP2DATE="updatecmd_gnu ${PNAME}"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # fix ftbfs against newer glibc (>=2.16)
35 mpatch ${PNAME}-${PVER}-gnulib-gets.patch || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41
42 mconfigure \
43 --libexecdir=/usr/$(mlibdir)/cpio \
44 --with-rmt=/usr/bin/rmt \
45 --enable-nls \
46 || die
47
48 mmake || die
49 }