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 2506 - (show annotations) (download)
Thu Jun 30 13:55:15 2011 UTC (12 years, 11 months ago) by niro
File size: 1304 byte(s)
-removed STATE variable from smage files, use global distribution file for package/distribution states
1 # $Id$
2
3 PNAME="rpm2targz"
4 PVER="9.0"
5 PBUILD="r11"
6
7 PCATEGORIE="app-arch"
8
9 DESCRIPTION="rpm2targz converts .rpm archives to .tar.gz archives."
10 HOMEPAGE="http://www.slackware.com/config/packages.php"
11
12 DEPEND=">= virtual/glibc
13 >= app-arch/cpio-2.11
14 >= sys-apps/file-5
15 >= sys-apps/util-linux-2.19"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 REMOVE_DEPRECATED_MAGE_TARGETS=1
21 sminclude mtools alx
22
23 SRC_URI=(
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${PNAME}-${PVER}-gentoo.patch
26 mirror://${PNAME}/${PNAME}-${PVER}-bzip2.patch
27 mirror://${PNAME}/${PNAME}-${PVER}-bzip2_rpm2targz.patch
28 )
29
30 src_prepare()
31 {
32 install -d ${SRCDIR} || die
33 munpack ${SRCFILE} ${SRCDIR} || die
34 cd ${SRCDIR}
35
36 # makes rpm2targz extract in current dir (gentoo)
37 mpatch ${PNAME}-${PVER}-gentoo.patch || die
38
39 # adds bzip2 detection (gentoo)
40 mpatch ${PNAME}-${PVER}-bzip2.patch || die
41
42 # adds bzip2 decompression to rpm2targz (gentoo)
43 mpatch ${PNAME}-${PVER}-bzip2_rpm2targz.patch || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49 gcc ${CFLAGS} -o rpmoffset rpmoffset.c || die
50 }
51
52 src_install()
53 {
54 cd ${SRCDIR}
55
56 # prepare some directories
57 minstalldir /usr/bin || die
58
59 # install needed files only
60 minstallexec rpmoffset || die
61 minstallexec rpm2targz || die
62
63 minstalldocs rpm2targz.README || die
64 }