1 |
I'm writing my first ebuild, and I'm having a hard time figuring out how |
2 |
to get it to install all the files properly once they've been created in |
3 |
the image directory. I've included my ebuild file. Any help would be |
4 |
greatly appreciated. |
5 |
# Copyright 1999-2000 Gentoo Technologies, Inc. |
6 |
# Distributed under the terms of the GNU General Public License, v2 or later |
7 |
# Author Matthew Walker <mwalker@×××××××.net> |
8 |
|
9 |
S=${WORKDIR}/${PN}-${PV} |
10 |
DESCRIPTION="Xscorch is a clone of the classic DOS game, 'Scorched Earth'." |
11 |
SRC_URI="http://chaos2.org/xscorch/${PN}-${PV}.tar.gz |
12 |
http://utoxin.kydance.net/xscorch/${PN}-${PV}.tar.gz" |
13 |
|
14 |
HOMEPAGE="http://chaos2.org/xscorch/" |
15 |
SLOT="0" |
16 |
LICENSE="GPL" |
17 |
DEPEND=">=x11-libs/gtk-1.2" |
18 |
|
19 |
src_unpack() { |
20 |
unpack ${PN}-${PV}.tar.gz |
21 |
cd ${S} |
22 |
} |
23 |
|
24 |
src_compile() { |
25 |
./configure --prefix=/usr --bindir=/usr/bin --datadir=/usr/share |
26 |
--mandir=/usr/share/man --enable-opt --host=${CHOST} || die emake || die |
27 |
} |
28 |
|
29 |
src_install () { |
30 |
make DESTDIR=${D} install || die |
31 |
|
32 |
dodir /usr/bin |
33 |
dodir /usr/share/doc/${PN}-${PV} |
34 |
dodir /usr/share/${PN} |
35 |
dodir /usr/share/${PN}/images |
36 |
dodir /usr/share/${PN}/sounds |
37 |
|
38 |
dobin ${D}/usr/bin/xscorch |
39 |
dobin ${D}/usr/bin/xscorch-server |
40 |
|
41 |
insinto /usr/share/man/man6 |
42 |
doins ${D}/usr/share/man/man6/${PN}.6.gz |
43 |
|
44 |
dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO |
45 |
} |