aboutsummaryrefslogtreecommitdiff
blob: 78bb107fc5f94489a84cb61407ac8e7b5a6e639d (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit games

DESCRIPTION="a"
HOMEPAGE="b"
SRC_URI="https://github.com/Blackvoxel/Blackvoxel/archive/v${PV}.tar.gz -> ${PF}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

S="${WORKDIR}/Blackvoxel-${PV}"

src_prepare() {
	sed -i 's/\(CFLAGS\)=\(.*\)/\1+=\2/g' Makefile || die
	sed -i 's/\(CFLAGS.*\)-O3/\1/g' Makefile || die
	sed -i '/Licence/d' Makefile || die
}

src_install() {
	emake specialinstall=1 \
		DESTDIR="${D}" \
		bindir="${D}/usr/bin/" \
		icondir="${D}/usr/share/icons/" \
		icondir2="${D}/usr/share/icons/" \
		desktopdir="${D}/usr/share/applications/" \
		blackvoxeldatadir="${D}/usr/share/${PF}/"
		install
}