Magellan Linux

Annotation of /trunk/todo/frostwire/frostwire-4.10.9-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2301 - (hide annotations) (download)
Thu Jul 9 19:33:51 2009 UTC (14 years, 11 months ago) by niro
File size: 2152 byte(s)
-moved to 'todo'
1 niro 2 # $Header: /magellan-cvs/smage/frostwire/frostwire-4.10.9-r1.smage2,v 1.3 2007-11-10 14:06:38 niro Exp $
2    
3     PNAME="frostwire"
4     PVER="4.10.9"
5     PBUILD="r1"
6    
7     PCATEGORIE="net-p2p"
8     STATE="stable"
9    
10     DESCRIPTION="An opensource fork of limewire."
11     HOMEPAGE="http://www.frostwire.com/"
12    
13     DEPEND=">= virtual/x11
14     >= virtual/java
15     >= x11-libs/gtk2+-2.6.7"
16    
17     SDEPEND=">= dev-util/desktop-file-utils-0.10"
18    
19     SRCFILE="FrostWire-${PVER}-2.tar.gz"
20     SRCDIR="${BUILDDIR}/FrostWire-${PVER}/usr/lib/frostwire"
21    
22     SRC_URI=(
23     mirror://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/frostwire.sh
25     mirror://${PNAME}/frostwire.png
26     mirror://${PNAME}/frostwire-16x16.png
27     mirror://${PNAME}/frostwire-32x32.png
28     mirror://${PNAME}/frostwire-48x48.png
29     )
30    
31     src_prepare() {
32     munpack ${SRCFILE} || die
33     }
34    
35     src_install() {
36     cd ${SRCDIR}
37    
38     # needed directories
39     install -d ${BINDIR}/etc/env.d || die
40     install -d ${BINDIR}/usr/{bin,share/pixmaps} || die
41     install -d ${BINDIR}/usr/share/icons/hicolor/{16x16,32x32,48x48}/apps || die
42     install -d ${BINDIR}/opt/frostwire || die
43    
44     # java stuff
45     install -m0644 *.jar *.war *.properties *.ver *.sh hashes \
46     ${BINDIR}/opt/frostwire || die
47    
48     # our binary
49     install -m0755 -o root -g root \
50     ${SOURCEDIR}/${PNAME}/frostwire.sh \
51     ${BINDIR}/usr/bin/frostwire || die
52    
53     # environment
54     echo "PATH=/opt/frostwire" > /etc/env.d/99frostwire || die
55    
56     # desktop icons
57     install -m0644 ${SOURCEDIR}/${PNAME}/frostwire.png \
58     ${BINDIR}/usr/share/pixmaps || die
59    
60     local i
61     for i in 16x16 32x32 48x48
62     do
63     install -m0644 ${SOURCEDIR}/${PNAME}/frostwire-${i}.png \
64     ${BINDIR}/usr/share/icons/hicolor/${i}/apps || die
65     done
66    
67     cat > frostwire.desktop << EOF
68     [Desktop Entry]
69     Encoding=UTF-8
70     Name=FrostWire
71     Comment=Gnutella P2P Client
72     Exec=/usr/bin/frostwire
73     Icon=frostwire.png
74     Terminal=false
75     Type=Application
76     StartupWMClass=frostwire
77     EOF
78     desktop-file-install \
79     --vendor frostwire \
80     --delete-original \
81     --dir ${BINDIR}/usr/share/applications \
82     --add-category X-Magellan-Extra \
83     --add-category Network \
84     --add-category FileTransfer \
85     --add-category P2P \
86     --add-category Application \
87     frostwire.desktop \
88     || die
89    
90     minstalldocs COPYING SOURCE README.txt || die
91     }

Properties

Name Value
svn:keywords Id