aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpd/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/mpd/APKBUILD')
-rw-r--r--main/mpd/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/mpd/APKBUILD b/main/mpd/APKBUILD
index 1e0d759d8c..40def3d346 100644
--- a/main/mpd/APKBUILD
+++ b/main/mpd/APKBUILD
@@ -20,8 +20,15 @@ source="http://www.musicpd.org/download/mpd/${pkgver%.*}/mpd-$pkgver.tar.xz
mpd.confd
"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -36,7 +43,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
#provide a config that works by default