1 |
Angelo Arrifano wrote: |
2 |
> |
3 |
> [ -z "${GPE_MIRROR}" ] && GPE_MIRROR="http://gpe.linuxtogo.org/download/source" |
4 |
> [ -z "${GPE_TARBALL_SUFFIX}" ] && GPE_TARBALL_SUFFIX="gz" |
5 |
> SRC_URI="${GPE_MIRROR}/${P}.tar.${GPE_TARBALL_SUFFIX}" |
6 |
> |
7 |
|
8 |
Use [[ here. |
9 |
|
10 |
> |
11 |
> # @FUNCTION: gpe_src_compile |
12 |
> # @DESCRIPTION: (Cross-)Compiles a GPE package. |
13 |
> gpe_src_compile() { |
14 |
> tc-export CC |
15 |
> has "${EAPI:-0}" 0 1 && gpe_src_configure "$@" |
16 |
> # miknix: Code belo must NOT die, some packages dont really build anything, |
17 |
> # just install. |
18 |
> emake PREFIX=/usr |
19 |
> } |
20 |
> |
21 |
|
22 |
The packages that don't build anything can do: |
23 |
src_compile() { :; } or you can have a variable for skipping the build |
24 |
step. |
25 |
|
26 |
Regards, |
27 |
Petteri |