# Maintainer: Espen Fossen pkgname=mstream pkgver=4.0.1 pkgrel=1 pkgdesc='Music player server with a web-based interface' arch=('any') url="http://mstream.io" license=('GPL3') depends=('nodejs') makedepends=('npm') install=mstream.install backup=('var/lib/mstream/config.json') source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz mstream.service config.json) noextract=($pkgname-$pkgver.tgz) package() { npm install -g --user root --prefix "$pkgdir"/usr $pkgname-$pkgver.tgz install -d -g 49 -o 49 "${pkgdir}/var/lib/${pkgname}" install -d -g 49 -o 49 "${pkgdir}/var/lib/${pkgname}/media" install -d -g 49 -o 49 "${pkgdir}/var/lib/${pkgname}/album-art" install -Dm644 mstream.service "$pkgdir"/usr/lib/systemd/system/mstream.service install -Dm644 -g 49 -o 49 config.json "${pkgdir}/var/lib/${pkgname}/config.json" } md5sums=('edc1f3de9e2833de93ffef1123bb9bae' '6640e102dd29a6da5c4c075e4c4042d7' '0bf80ec584f8b028628f4c684cdaf283')