Magellan Linux

Contents of /trunk/extras/rar/rar-3.9.1b1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4056 - (show annotations) (download)
Tue Nov 17 20:58:58 2009 UTC (14 years, 10 months ago) by niro
File size: 1200 byte(s)
auto added: ver bump to 3.9.1b1-r1
1 # $Id$
2
3 PNAME="rar"
4 PVER="3.9.1b1"
5 PBUILD="r1"
6
7 PCATEGORIE="app-arch"
8 STATE="unstable"
9
10 DESCRIPTION="rar - creating and decompressing rar files."
11 HOMEPAGE="http://www.rarlab.com/"
12
13 DEPEND=""
14
15 SRCFILE_x86="${PNAME}linux-${PVER}.tar.gz"
16 SRCFILE_x86_64="${PNAME}linux-x64-${PVER}.tar.gz"
17 # decide between x86 and x86_64 arch
18 SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86})"
19 SRCDIR="${BUILDDIR}/${PNAME}"
20
21 sminclude mtools
22
23 SRC_URI=(
24 http://www.rarlab.com/${PNAME}/${SRCFILE_x86}
25 http://www.rarlab.com/${PNAME}/${SRCFILE_x86_64}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 UP2DATE="updatecmd ${HOMEPAGE}/download.htm | grep ${PNAME}linux- | firsttarball gz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 }
35
36 src_install()
37 {
38 cd ${SRCDIR}
39
40 # needed directories
41 minstalldir /opt/bin || die
42 minstalldir /opt/rar/bin || die
43 minstalldir /opt/rar/etc || die
44 minstalldir /opt/rar/lib || die
45
46 # bins
47 minstallexec rar /opt/rar/bin || die
48 minstallexec unrar /opt/rar/bin || die
49
50 mlink /opt/rar/bin/rar /opt/bin || die
51 mlink /opt/rar/bin/unrar /opt/bin || die
52
53 # libs
54 minstallfile default.sfx /opt/rar/lib || die
55
56 # confs
57 minstallfile rarfiles.lst /opt/rar/etc || die
58
59 # docs
60 minstalldocs *.txt *.diz || die
61 }

Properties

Name Value
svn:keywords Id