summaryrefslogtreecommitdiff
path: root/newapkbuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-28 07:18:15 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-28 07:20:11 +0000
commit15718f9cf98c32e3d93c2a52d94dff414f8838d3 (patch)
tree6841064a64e3e84234fb67c80dc8e4ccb9e3c4b1 /newapkbuild.in
parent91c0772347084e783737d046d71e2de8f20889ca (diff)
downloadabuild-15718f9cf98c32e3d93c2a52d94dff414f8838d3.tar.gz
abuild-15718f9cf98c32e3d93c2a52d94dff414f8838d3.tar.bz2
abuild-15718f9cf98c32e3d93c2a52d94dff414f8838d3.tar.xz
abuild-15718f9cf98c32e3d93c2a52d94dff414f8838d3.zip
newapkbuild: build and package sections for 'make' buildtype
This buildtype is when there is a simple Makefile only.
Diffstat (limited to 'newapkbuild.in')
-rwxr-xr-xnewapkbuild.in16
1 files changed, 15 insertions, 1 deletions
diff --git a/newapkbuild.in b/newapkbuild.in
index efb588a..dce3133 100755
--- a/newapkbuild.in
+++ b/newapkbuild.in
@@ -33,6 +33,12 @@ is_url() {
}
# Build sections
+build_make() {
+ cat >>APKBUILD<<__EOF__
+ make || return 1
+__EOF__
+}
+
build_autotools() {
cat >>APKBUILD<<__EOF__
./configure --prefix=/usr \\
@@ -59,13 +65,17 @@ __EOF__
}
# Package sections
-package_autotools() {
+package_make() {
cat >>APKBUILD<<__EOF__
make DESTDIR="\$pkgdir" install || return 1
rm -f "\$pkgdir"/usr/lib/*.la
__EOF__
}
+package_autotools() {
+ package_make
+}
+
package_perl() {
cat >>APKBUILD<<__EOF__
make DESTDIR="\$pkgdir" install || return 1
@@ -200,6 +210,8 @@ build() {
__EOF__
case "$buildtype" in
+ make)
+ build_make;;
autotools)
build_autotools;;
perl)
@@ -220,6 +232,8 @@ package() {
__EOF__
case "$buildtype" in
+ make)
+ package_make;;
autotools)
package_autotools;;
perl)