Magellan Linux

Contents of /trunk/extras/limewire/limewire-4.12.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1754 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/limewire/limewire-4.12.4-r1.smage2,v 1.3 2007-11-10 14:36:08 niro Exp $
2
3 PNAME="limewire"
4 PVER="4.12.4"
5 PBUILD="r1"
6
7 PCATEGORIE="net-p2p"
8 STATE="stable"
9
10 DESCRIPTION="A Gnutella Network P2P client."
11 HOMEPAGE="http://www.limewire.com/"
12
13 DEPEND=">= virtual/x11
14 >= virtual/java
15 >= x11-libs/gtk2+-2.6.7"
16
17 SDEPEND=">= app-arch/unzip-5
18 >= dev-util/desktop-file-utils-0.10"
19
20 SRCFILE="LimeWireOther-${PVER}.zip"
21 SRCDIR="${BUILDDIR}/LimeWire"
22
23 SRC_URI=(
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/limewire.sh
26 mirror://${PNAME}/limewire.png
27 )
28
29 src_prepare() {
30 unzip ${SOURCEDIR}/${PNAME}/${SRCFILE} -d ${BUILDDIR} || die
31 }
32
33 src_install() {
34 cd ${SRCDIR}
35
36 # needed directories
37 install -d ${BINDIR}/etc/env.d || die
38 install -d ${BINDIR}/usr/{bin,share/icons} || die
39 install -d ${BINDIR}/opt/limewire || die
40
41 # java stuff
42 install -m0644 *.jar *.war *.properties *.ver *.sh hashes *.txt \
43 ${BINDIR}/opt/limewire || die
44
45 # our binary
46 install -m0755 -o root -g root \
47 ${SOURCEDIR}/${PNAME}/limewire.sh \
48 ${BINDIR}/usr/bin/limewire || die
49
50 # environment
51 echo "PATH=/opt/limewire" > /etc/env.d/99limewire || die
52
53 # desktop icon
54 install -m0644 ${SOURCEDIR}/${PNAME}/limewire.png \
55 ${BINDIR}/usr/share/icons || die
56 cat > limewire.desktop << EOF
57 [Desktop Entry]
58 Encoding=UTF-8
59 Name=LimeWire
60 Comment=Gnutella P2P Client
61 Exec=/usr/bin/limewire
62 Icon=limewire.png
63 Terminal=false
64 Type=Application
65 StartupWMClass=limewire
66 EOF
67 desktop-file-install \
68 --vendor limewire \
69 --delete-original \
70 --dir ${BINDIR}/usr/share/applications \
71 --add-category X-Magellan-Extra \
72 --add-category Network \
73 --add-category FileTransfer \
74 --add-category P2P \
75 --add-category Application \
76 limewire.desktop \
77 || die
78 }

Properties

Name Value
svn:keywords Id