aboutsummaryrefslogtreecommitdiff
blob: bd69ff74a387c79df1c019b20d63216a9889c4ab (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

src_configure() {
	local myconf=(
		--with-optimisation=''
		--disable-testing
		--enable-static
	)

	gkconf "${myconf[@]}"
}

src_compile() {
	MAKEOPTS+=" V="
	gkmake
}

src_install() {
	local MYMAKEOPTS=( "DESTDIR=${D}" )
	MYMAKEOPTS+=( -j1 )
	MYMAKEOPTS+=( "DATADIR=${D}/usr/share" )
	MYMAKEOPTS+=( "install" )

	gkmake "${MYMAKEOPTS[@]}"

	rm -rf \
		"${D}"/usr/share
}