aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpd/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2017-10-19 09:24:47 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2017-10-19 09:33:01 +0200
commit7b52d749305c15932018efa84b7bb664055686c8 (patch)
treeb6488d2076572029926baea92bdef17cd51504ad /main/mpd/APKBUILD
parentbc7482426372f578eed02a1021cb9e405a2cd0a8 (diff)
downloadaports-7b52d749305c15932018efa84b7bb664055686c8.tar.gz
aports-7b52d749305c15932018efa84b7bb664055686c8.tar.bz2
aports-7b52d749305c15932018efa84b7bb664055686c8.tar.xz
main/mpd: modernize APKBUILD
Diffstat (limited to 'main/mpd/APKBUILD')
-rw-r--r--main/mpd/APKBUILD19
1 files changed, 9 insertions, 10 deletions
diff --git a/main/mpd/APKBUILD b/main/mpd/APKBUILD
index 7b1d5abdb9..227ae565eb 100644
--- a/main/mpd/APKBUILD
+++ b/main/mpd/APKBUILD
@@ -31,9 +31,9 @@ source="https://www.musicpd.org/download/mpd/$_branch/mpd-$pkgver.tar.xz
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- default_prepare || return 1
- libtoolize --force && aclocal && autoconf && automake --add-missing \
- || return 1
+ default_prepare
+ cd "$builddir"
+ libtoolize --force && aclocal && autoconf && automake --add-missing
}
build() {
@@ -51,14 +51,13 @@ build() {
--enable-nfs \
--enable-smbclient \
--enable-ffmpeg \
- --enable-libmpdclient \
- || return 1
- make || return 1
+ --enable-libmpdclient
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
# provide a config that works by default
install -d "$pkgdir"/etc
@@ -67,15 +66,15 @@ package() {
-e 's:\#log_file.*:log_file\t\t"syslog":' \
doc/mpdconf.example > "$pkgdir"/etc/mpd.conf
install -m755 -D "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname || return 1
+ "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd \
- "$pkgdir"/etc/conf.d/$pkgname || return 1
+ "$pkgdir"/etc/conf.d/$pkgname
install -d -g audio -o mpd -m775 \
"$pkgdir"/var/run/mpd \
"$pkgdir"/var/log/mpd \
"$pkgdir"/var/lib/mpd \
"$pkgdir"/var/lib/mpd/playlists \
- "$pkgdir"/var/lib/mpd/music || return 1
+ "$pkgdir"/var/lib/mpd/music
}
sha512sums="1dd1c366f7ed43a497a6f2622b7ea01e822b582efd7868498ae73f1617c0abadac1a8aae5bf8b7f9aa561d247dc5d0f2c9c3903d8ddf2da28e6c124a378050f0 mpd-0.20.11.tar.xz