newapkbuild: rename config_* functions to build_*

We call make as well as needed so build_* is better function name.
This commit is contained in:
Natanael Copa 2011-06-28 07:11:02 +00:00
parent 50dd6eab65
commit b0b66ea098

View File

@ -33,7 +33,7 @@ is_url() {
} }
# Build sections # Build sections
config_autotools() { build_autotools() {
cat >>APKBUILD<<__EOF__ cat >>APKBUILD<<__EOF__
./configure --prefix=/usr \\ ./configure --prefix=/usr \\
--sysconfdir=/etc \\ --sysconfdir=/etc \\
@ -45,14 +45,14 @@ config_autotools() {
__EOF__ __EOF__
} }
config_perl() { build_perl() {
cat >>APKBUILD<<__EOF__ cat >>APKBUILD<<__EOF__
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1 make || return 1
__EOF__ __EOF__
} }
config_python() { build_python() {
cat >>APKBUILD<<__EOF__ cat >>APKBUILD<<__EOF__
python setup.py build || return 1 python setup.py build || return 1
__EOF__ __EOF__
@ -210,11 +210,11 @@ __EOF__
case "$buildtype" in case "$buildtype" in
autotools) autotools)
config_autotools;; build_autotools;;
perl) perl)
config_perl;; build_perl;;
python) python)
config_python;; build_python;;
esac esac
cat >>APKBUILD<<__EOF__ cat >>APKBUILD<<__EOF__