# Maintainer: Juergen Mang <mail [at] jcgames [dot] de>
# Website: https://github.com/jcorporation/myMPD
# PKGBUILD Based on https://github.com/CultofRobots/archphile-custom/tree/master/mympd

pkgname=mympd
_pkgname=myMPD
<<<<<<< HEAD
pkgver=7.0.2
=======
pkgver=8.0.0
>>>>>>> v8.0.0
pkgrel=1
pkgdesc="A standalone and mobile friendly web-based MPD client."
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://jcorporation.github.io/myMPD/"
license=('GPL2')
depends=('pcre' 'openssl' 'libid3tag' 'flac' 'lua')
makedepends=('cmake' 'perl')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=('etc/webapps/mympd/mympd.conf')
install=archlinux.install
source=("mympd_${pkgver}.orig.tar.gz")
sha256sums=('SKIP')

build() {
  cd "${srcdir}" || exit 1
  ./build.sh createassets
  cd release || exit 1
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=RELEASE ..
  make
}

package() {
  cd "${srcdir}/release"
  make DESTDIR="$pkgdir/" install
}
