From 6faedcdac2a41f9657d9824f01874878a6a9de64 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 15 Apr 2010 07:36:54 +0000 Subject: main/make: build fix: separate package() function --- main/make/APKBUILD | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'main') diff --git a/main/make/APKBUILD b/main/make/APKBUILD index 5d214140..5b0137cc 100644 --- a/main/make/APKBUILD +++ b/main/make/APKBUILD @@ -1,20 +1,26 @@ # Maintainer: Natanael Copa pkgname=make pkgver=3.81 -pkgrel=1 +pkgrel=2 pkgdesc="GNU make utility to maintain groups of programs" url="http://www.gnu.org/software/make" license=GPL -depends=uclibc +depends= subpackages="$pkgname-doc" source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" +_builddir="$srcdir"/$pkgname-$pkgver build() { - cd $startdir/src/$pkgname-$pkgver + cd "$_builddir" ./configure --prefix=/usr \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + --disable-nls make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install } -- cgit v1.2.3