Magellan Linux

Annotation of /tags/old-unstable-20120113/core/rpm2targz/rpm2targz-9.0-r9.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9870 - (hide annotations) (download)
Fri Jan 13 21:26:11 2012 UTC (12 years, 4 months ago) by niro
File size: 1306 byte(s)
tagged 'old-unstable-20120113'
1 niro 3335 # $Id$
2    
3     PNAME="rpm2targz"
4     PVER="9.0"
5     PBUILD="r9"
6    
7     PCATEGORIE="app-arch"
8     STATE="unstable"
9    
10     DESCRIPTION="rpm2targz converts .rpm archives to .tar.gz archives."
11     HOMEPAGE="http://www.slackware.com/config/packages.php"
12    
13     DEPEND=">= virtual/glibc
14     >= app-arch/cpio-2.5
15     >= sys-apps/file-4
16     >= sys-apps/util-linux-2.12
17     >= sys-apps/which-2.16"
18    
19     SRCFILE="${PNAME}-${PVER}.tar.gz"
20     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21    
22     sminclude mtools
23    
24     SRC_URI=(
25     mirror://${PNAME}/${SRCFILE}
26     mirror://${PNAME}/${PNAME}-${PVER}-gentoo.patch
27     mirror://${PNAME}/${PNAME}-${PVER}-bzip2.patch
28     mirror://${PNAME}/${PNAME}-${PVER}-bzip2_rpm2targz.patch
29     )
30    
31     src_prepare()
32     {
33     install -d ${SRCDIR} || die
34     munpack ${SRCFILE} ${SRCDIR} || die
35     cd ${SRCDIR}
36    
37     # makes rpm2targz extract in current dir (gentoo)
38     mpatch ${PNAME}-${PVER}-gentoo.patch || die
39    
40     # adds bzip2 detection (gentoo)
41     mpatch ${PNAME}-${PVER}-bzip2.patch || die
42    
43     # adds bzip2 decompression to rpm2targz (gentoo)
44     mpatch ${PNAME}-${PVER}-bzip2_rpm2targz.patch || die
45     }
46    
47     src_compile()
48     {
49     cd ${SRCDIR}
50     gcc ${CFLAGS} -o rpmoffset rpmoffset.c || die
51     }
52    
53     src_install()
54     {
55     cd ${SRCDIR}
56    
57     # prepare some directories
58     minstalldir /usr/bin || die
59    
60     # install needed files only
61     minstallexec rpmoffset || die
62     minstallexec rpm2targz || die
63    
64     minstalldocs rpm2targz.README || die
65     }

Properties

Name Value
svn:keywords Id