Magellan Linux

Annotation of /trunk/core/rpm2targz/rpm2targz-9.0-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
Original Path: trunk/extras/rpm2targz/rpm2targz-9.0-r7.smage2
File size: 1401 byte(s)
import repo
1 niro 2 # $Header: /magellan-cvs/smage/rpm2targz/rpm2targz-9.0-r7.smage2,v 1.1 2008/02/12 21:03:23 niro Exp $
2    
3     PNAME="rpm2targz"
4     PVER="9.0"
5     PBUILD="r7"
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