diff options
Diffstat (limited to 'main/clamsmtp/APKBUILD')
-rw-r--r-- | main/clamsmtp/APKBUILD | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/main/clamsmtp/APKBUILD b/main/clamsmtp/APKBUILD index ef4fbe7e68..cdcefb7a7b 100644 --- a/main/clamsmtp/APKBUILD +++ b/main/clamsmtp/APKBUILD @@ -16,9 +16,15 @@ source="http://thewalter.net/stef/software/clamsmtp/clamsmtp-$pkgver.tar.gz clamsmtpd.initd " -build() { - cd "$srcdir/$pkgname-$pkgver" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + update_config_sub || return 1 +} +build() { + cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -28,6 +34,10 @@ build() { --infodir=/usr/share/info \ || return 1 make || return 1 +} + +package() { + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 # set default clam address and user |