Commit 4309bb06 authored by Sören Tempel's avatar Sören Tempel

community/mopidy: don't compress man pages in package()

abuild(1) will do that for us. Also use a fancy for-loop to install the
man pages, this loop should automatically pick up new man pages if added
by upstream at some point.
parent 7264952b
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mopidy
pkgver=3.0.2
pkgrel=2
pkgrel=3
pkgdesc="Mopidy is an extensible music server"
url="https://www.mopidy.com/"
arch="noarch"
......@@ -44,11 +45,11 @@ package() {
install -dm755 "$pkgdir/usr/share/doc/mopidy"
cp -r build/sphinx/html "$pkgdir/usr/share/doc/mopidy"
install -dm755 "$pkgdir/usr/share/man/man1/"
gzip -c build/sphinx/man/mopidy.1 > "$pkgdir/usr/share/man/man1/mopidy.1.gz"
install -dm755 "$pkgdir/usr/share/man/man8/"
gzip -c extra/mopidyctl/mopidyctl.8 > "$pkgdir/usr/share/man/man8/mopidyctl.8.gz"
local man
for man in build/sphinx/man/*.? extra/mopidyctl/mopidyctl.8; do
install -Dm644 "$man" \
"$pkgdir"/usr/share/man/man${man##*.}/${man##*/}
done
install -Dm644 "$srcdir/mopidy.conf" \
"$pkgdir/etc/mopidy/mopidy.conf"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment