Contents of /smage/trunk/core/rpm2targz/rpm2targz-9.0-r9.smage2
Parent Directory | Revision Log
Revision 356 -
(show annotations)
(download)
Mon May 3 10:44:06 2010 UTC (14 years, 4 months ago) by niro
File size: 1282 byte(s)
Mon May 3 10:44:06 2010 UTC (14 years, 4 months ago) by niro
File size: 1282 byte(s)
auto added: ver bump to 9.0-r9
1 | # $Id$ |
2 | |
3 | PNAME="rpm2targz" |
4 | PVER="9.0" |
5 | PBUILD="r9" |
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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |