Magellan Linux

Contents of /branches/magellan-next/core/rpm2targz/rpm2targz-9.0-r10.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6444 - (show annotations) (download)
Mon Aug 23 18:23:05 2010 UTC (13 years, 8 months ago) by niro
File size: 1365 byte(s)
auto added: ver bump to 9.0-r10
1 # $Id: rpm2targz-9.0-r9.smage2 3335 2009-10-19 23:11:28Z niro $
2
3 PNAME="rpm2targz"
4 PVER="9.0"
5 PBUILD="r10"
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.11
15 >= sys-apps/file-4
16 >= sys-apps/util-linux-2.18
17 >= sys-apps/which-2.20"
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 }