Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/rpm2targz/rpm2targz-9.0-r11.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1877 - (show annotations) (download)
Wed Apr 27 11:16:20 2011 UTC (13 years, 1 month ago) by niro
File size: 1321 byte(s)
-fixed dependencies
1 # $Id$
2
3 PNAME="rpm2targz"
4 PVER="9.0"
5 PBUILD="r11"
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-5
16 >= sys-apps/util-linux-2.19"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 REMOVE_DEPRECATED_MAGE_TARGETS=1
22 sminclude mtools alx
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 }