Magellan Linux

Contents of /branches/branch-xorg18/todo/azureus/azureus-3.1.1.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5192 - (show annotations) (download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 1 month ago) by niro
File size: 3110 byte(s)
created branch 'branch-xorg18'
1 # $Header: /magellan-cvs/smage/azureus/azureus-3.0.5.2-r1.smage2,v 1.1 2008/04/20 21:07:06 niro Exp $
2
3 PNAME="azureus"
4 PVER="3.1.1.0"
5 PBUILD="r1"
6
7 PCATEGORIE="net-p2p"
8 STATE="unstable"
9
10 DESCRIPTION="A java bittorent client with many features."
11 HOMEPAGE="http://azureus.sourceforge.net/"
12
13 DEPEND=">= virtual/glibc
14 >= dev-libs/glib2-2.16
15 >= x11-libs/gtk2+-2.12
16 >= virtual/java"
17
18 SDEPEND=">= app-arch/unzip-5
19 >= dev-util/desktop-file-utils-0.15"
20
21 # both files must be fetch or our md5-logic breaks
22 SRCFILE_x86="Azureus_${PVER}_linux.tar.bz2"
23 SRCFILE_x86_64="Azureus_${PVER}_linux-x86_64.tar.bz2"
24 # decide between x86 and x86_64 arch
25 SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86})"
26 SRCDIR="${BUILDDIR}/${PNAME}"
27
28 SWT_SRCFILE_x86="swt-3.4-gtk-linux-x86.zip"
29 SWT_SRCFILE_x86_64="swt-3.4-gtk-linux-x86_64.zip"
30 SWT_RELEASE_VERSION="R-3.4-200806172000"
31 SWT_SRCFILE="$(eval echo \$SWT_SRCFILE_${ARCH/i*86/x86})"
32 SWT_SRCDIR="${BUILDDIR}/swt"
33
34 sminclude mtools xdg
35
36 SRC_URI=(
37 sourceforge://${PNAME}/${SRCFILE_x86}
38 sourceforge://${PNAME}/${SRCFILE_x86_64}
39 http://mirror.yoxos-eclipse-distribution.de/eclipse.org/eclipse/downloads/drops/${SWT_RELEASE_VERSION}/${SWT_SRCFILE_x86}
40 http://mirror.yoxos-eclipse-distribution.de/eclipse.org/eclipse/downloads/drops/${SWT_RELEASE_VERSION}/${SWT_SRCFILE_x86_64}
41 mirror://${PNAME}/${SRCFILE_x86}
42 mirror://${PNAME}/${SRCFILE_x86_64}
43 mirror://${PNAME}/${SWT_SRCFILE_x86}
44 mirror://${PNAME}/${SWT_SRCFILE_x86_64}
45 mirror://${PNAME}/azureus-2.1.0.4
46 )
47
48 src_prepare()
49 {
50 munpack ${SRCFILE} || die
51 munpack ${SWT_SRCFILE} ${SWT_SRCDIR} || die
52 }
53
54 src_install()
55 {
56 cd ${SRCDIR}
57
58 # needed directories
59 minstalldir /usr/bin || die
60 minstalldir /usr/$(mlibdir)/${PNAME} || die
61
62 # needed for installing plugins later on
63 minstalldir /usr/$(mlibdir)/${PNAME}/plugins/azupdater || die
64 minstalldir /usr/$(mlibdir)/${PNAME}/plugins/azplugins || die
65 minstalldir /usr/$(mlibdir)/${PNAME}/plugins/azrating || die
66 minstalldir /usr/$(mlibdir)/${PNAME}/plugins/azupnpav || die
67
68 # all jar's
69 minstallfile \*.jar /usr/$(mlibdir)/${PNAME} || die
70
71 # and all swt jar's
72 minstallfile ${SWT_SRCDIR}/\*.jar /usr/$(mlibdir)/${PNAME} || die
73
74 # all deliverd plugins
75 minstallfile plugins/azupdater/\* /usr/$(mlibdir)/${PNAME}/plugins/azupdater || die
76 minstallfile plugins/azplugins/\* /usr/$(mlibdir)/${PNAME}/plugins/azplugins || die
77 minstallfile plugins/azrating/\* /usr/$(mlibdir)/${PNAME}/plugins/azrating || die
78 minstallfile plugins/azupnpav/\* /usr/$(mlibdir)/${PNAME}/plugins/azupnpav || die
79
80 # bins
81 # we install now our fixed binary
82 minstallexec -s azureus-2.1.0.4 /usr/bin/azureus || die
83
84 # fix the binary on 64 bit arches
85 if [[ $(mlibdir) != lib ]]
86 then
87 sed -i "s:^\(PROGRAM_DIR=\).*:\1/usr/$(mlibdir)/${PNAME}:" ${BINDIR}/usr/bin/azureus || die
88 fi
89
90 # menu-entry for kde and gnome
91 minstallpixmap ${SRCDIR}/Azureus.png azureus.png || die
92 minstall_desktop_icon \
93 --name Azureus \
94 --comment "Bittorent P2P Client" \
95 --exec "azureus" \
96 --icon "azureus.png" \
97 --categories Network,P2P,FileTransfer \
98 || die
99
100 # docs
101 minstalldocs README.* GPL.txt TOS.txt || die
102 }

Properties

Name Value
svn:keywords Id