summaryrefslogtreecommitdiff
blob: 251af9798a3fd7f768a95f4d881064f22ae75e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/qtopia-desktop-bin/qtopia-desktop-bin-1.7.0.ebuild,v 1.6 2005/01/01 15:47:30 eradicator Exp $

IUSE=""

inherit rpm

REV=-1
QD="/opt/Qtopia"
S="${WORKDIR}"

DESCRIPTION="Qtopia Deskyop sync application for Zaurus PDA's"
SRC_URI="ftp://ftp.trolltech.com/qtopia/desktop/RedHat9.0/qtopia-desktop-${PV}${REV}rh9.i386.rpm"
HOMEPAGE="http://www.trolltech.com/download/qtopia/"

DEPEND="virtual/libc"
RDEPEND="virtual/x11"

LICENSE="trolltech_PUL-1.0"
SLOT="0"
KEYWORDS="x86"
RESTRICT="nomirror nostrip"

src_install() {
	dodir ${QD}
	exeinto ${QD}/qtopiadesktop/bin ; doexe opt/Qtopia/qtopiadesktop/bin/assistant
	insinto ${QD}/qtopiadesktop/doc/en ; doins opt/Qtopia/qtopiadesktop/doc/en/*
	insinto ${QD}/qtopiadesktop/doc/de ; doins opt/Qtopia/qtopiadesktop/doc/de/*
	insinto ${QD}/qtopiadesktop/etc ; doins opt/Qtopia/qtopiadesktop/etc/*
	insinto ${QD}/qtopiadesktop/pics ; doins opt/Qtopia/qtopiadesktop/pics/*
	exeinto ${QD}/qtopiadesktop/plugins ; doexe opt/Qtopia/qtopiadesktop/plugins/*
	insinto ${QD}/lib ; doins opt/Qtopia/lib/*
	exeinto ${QD}/bin ; doexe opt/Qtopia/bin/qtopiadesktop
	newdoc /opt/Qtopia/qtopiadesktop/bin/README README.assistant
	newdoc opt/Qtopia/LICENSE.PERSONAL_USE LICENSE
	dodir /etc/env.d
	echo "PATH=${QD}/bin" > ${D}/etc/env.d/37qtopia-desktop-bin
}

pkg_postinst() {

	einfo " Finished installing Qtopia Desktop ${PV}${REV} into ${QD}"
	einfo
	einfo " To start Qtopia Desktop, run:"
	einfo
	einfo "   $ qtopiadesktop"
	einfo
}