Magellan Linux

Annotation of /trunk/extras/rar/rar-5.7.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33220 - (hide annotations) (download)
Sat Oct 19 13:22:45 2019 UTC (4 years, 6 months ago) by niro
File size: 1216 byte(s)
auto added: ver bump to 5.7.1-r1
1 niro 33220 # $Id$
2    
3     PNAME="rar"
4     PVER="5.7.1"
5     PBUILD="r1"
6    
7     PCAT="app-arch"
8    
9     DESCRIPTION="rar - creating and decompressing rar files."
10     HOMEPAGE="http://www.rarlab.com/"
11    
12     DEPEND=""
13    
14     SRCFILE_x86="${PNAME}linux-${PVER}.tar.gz"
15     SRCFILE_x86_64="${PNAME}linux-x64-${PVER}.tar.gz"
16     # decide between x86 and x86_64 arch
17     SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86})"
18     SRCDIR="${BUILDDIR}/${PNAME}"
19    
20     sminclude mtools
21    
22     SRC_URI=(
23     http://www.rarlab.com/${PNAME}/${SRCFILE_x86}
24     http://www.rarlab.com/${PNAME}/${SRCFILE_x86_64}
25     mirror://${PNAME}/${SRCFILE_x86}
26     mirror://${PNAME}/${SRCFILE_x86_64}
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     }