# Maintainer: Espen Fossen pkgname=mstream pkgver=3.3.1 pkgrel=3 pkgdesc='Music player server with a web-based interface' arch=('any') url="http://mstream.io" license=('GPL3') depends=('nodejs') makedepends=('npm') install=mstream.install 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=('97e65ef5d2654541fe349b2970213000' '6640e102dd29a6da5c4c075e4c4042d7' '0bf80ec584f8b028628f4c684cdaf283')