Annotation of /smage/trunk/core/rpm2targz/rpm2targz-9.0-r10.smage2
Parent Directory | Revision Log
Revision 1050 -
(hide annotations)
(download)
Tue Dec 21 13:03:47 2010 UTC (13 years, 4 months ago) by niro
File size: 1339 byte(s)
Tue Dec 21 13:03:47 2010 UTC (13 years, 4 months ago) by niro
File size: 1339 byte(s)
auto added: ver bump to 9.0-r10
1 | niro | 1050 | # $Id: rpm2targz-9.0-r9.smage2 356 2010-05-03 10:44:06Z 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.5 | ||
15 | >= sys-apps/file-4 | ||
16 | >= sys-apps/util-linux-2.12" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | sminclude mtools | ||
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 | } |