]> git.sev.monster Git - aports.git/blame - testing/mympd/APKBUILD
testing/mympd: upgrade to 18.1.2
[aports.git] / testing / mympd / APKBUILD
CommitLineData
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 5pkgname=mympd
4b822978 6_pkgver=16.0.0
8acd2c32 7pkgver=18.1.2
d901e5bc 8pkgrel=0
81f2db8b 9pkgdesc="myMPD is a standalone and mobile friendly web-based MPD client."
10url="https://jcorporation.github.io/myMPD/"
d23fb516 11arch="all"
81f2db8b 12license="GPL-3.0-or-later"
d901e5bc 13depends="libid3tag flac openssl>=1.1.0 lua5.4-libs pcre2"
14makedepends="cmake>=3.4 perl libid3tag-dev flac-dev openssl-dev>=1.1.0 linux-headers lua5.4-dev pcre2-dev jq"
63da6c91 15install="$pkgname.pre-install"
d901e5bc 16subpackages="$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"
18source="myMPD-$_pkgver.tar.gz::https://github.com/jcorporation/myMPD/archive/refs/heads/v16.0.0.tar.gz"
19builddir="$srcdir/myMPD-$_pkgver"
d23fb516 20
21build() {
81f2db8b 22 cd "$builddir" || exit 1
d23fb516 23 ./build.sh release
24}
25
26check() {
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
38package() {
39 cd "$builddir/release" || exit 1
81f2db8b 40 DESTDIR="$pkgdir" make install
d23fb516 41}
42
43sha512sums="
4b822978 443cc3e286acc07ad17e5c2d94376d2b7b4c6204056196587105ba7477f60c08c1ffebc2748836d2fda64c014c480fe7cfc6d407b7cd665d89fc90cd250ac37520 myMPD-16.0.0.tar.gz
d23fb516 45"
This page took 0.04614 seconds and 4 git commands to generate.