diff options
Diffstat (limited to 'main/ucarp/APKBUILD')
-rw-r--r-- | main/ucarp/APKBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/main/ucarp/APKBUILD b/main/ucarp/APKBUILD index e7639dd42..5ebccd71a 100644 --- a/main/ucarp/APKBUILD +++ b/main/ucarp/APKBUILD @@ -18,8 +18,15 @@ source="http://download.pureftpd.org/pub/ucarp/$pkgname-$pkgver.tar.gz vip-down-default.sh " +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + update_config_sub || return 1 +} + build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" ./configure \ --build=$CBUILD \ @@ -34,7 +41,7 @@ build() { } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname |