]>
Commit | Line | Data |
---|---|---|
be144bf2 | 1 | # Contributor: sev <sev+alpine@sev.monster> |
2 | # Maintainer: sev <sev+alpine@sev.monster> | |
d901e5bc | 3 | # Based on upstream APKBUILD |
4 | # https://github.com/jcorporation/myMPD/blob/master/contrib/packaging/alpine/APKBUILD.in | |
d23fb516 | 5 | pkgname=mympd |
4b822978 | 6 | _pkgver=16.0.0 |
8acd2c32 | 7 | pkgver=18.1.2 |
d901e5bc | 8 | pkgrel=0 |
81f2db8b | 9 | pkgdesc="myMPD is a standalone and mobile friendly web-based MPD client." |
10 | url="https://jcorporation.github.io/myMPD/" | |
d23fb516 | 11 | arch="all" |
81f2db8b | 12 | license="GPL-3.0-or-later" |
d901e5bc | 13 | depends="libid3tag flac openssl>=1.1.0 lua5.4-libs pcre2" |
14 | makedepends="cmake>=3.4 perl libid3tag-dev flac-dev openssl-dev>=1.1.0 linux-headers lua5.4-dev pcre2-dev jq" | |
63da6c91 | 15 | install="$pkgname.pre-install" |
d901e5bc | 16 | subpackages="$pkgname-doc $pkgname-openrc $pkgname-dbg" |
4b822978 | 17 | #source="myMPD-$pkgver.tar.gz::https://github.com/jcorporation/myMPD/archive/refs/tags/v$pkgver.tar.gz" |
18 | source="myMPD-$_pkgver.tar.gz::https://github.com/jcorporation/myMPD/archive/refs/heads/v16.0.0.tar.gz" | |
19 | builddir="$srcdir/myMPD-$_pkgver" | |
d23fb516 | 20 | |
21 | build() { | |
81f2db8b | 22 | cd "$builddir" || exit 1 |
d23fb516 | 23 | ./build.sh release |
24 | } | |
25 | ||
26 | check() { | |
b3360027 | 27 | cd "$builddir/release/bin" || exit 1 |
28 | ./mympd -h >/dev/null 2>&1 || return 1 | |
63da6c91 | 29 | if [ -x cli_tools/mympd-script ]; then |
b3360027 | 30 | # we want to check exit code so we have to turn off errexit |
31 | set +e | |
32 | ./mympd-script -h >/dev/null 2>&1 | |
63da6c91 | 33 | [ $? -ne 1 ] && return 1 |
b3360027 | 34 | set -e |
63da6c91 | 35 | fi |
d23fb516 | 36 | } |
37 | ||
38 | package() { | |
39 | cd "$builddir/release" || exit 1 | |
81f2db8b | 40 | DESTDIR="$pkgdir" make install |
d23fb516 | 41 | } |
42 | ||
43 | sha512sums=" | |
4b822978 | 44 | 3cc3e286acc07ad17e5c2d94376d2b7b4c6204056196587105ba7477f60c08c1ffebc2748836d2fda64c014c480fe7cfc6d407b7cd665d89fc90cd250ac37520 myMPD-16.0.0.tar.gz |
d23fb516 | 45 | " |