# Compiling Time: 0.06 SBU # Maintainer: Priyank Gosalia # Contributor: Tuxbubling pkgname=icecast pkgver=2.4.4 pkgrel=2 pkgdesc="Icecast is a streaming media server." url="http://www.icecast.org/" groups=('network-extra') archs=('x86_64') depends=('libxslt' 'libvorbis' 'curl' 'speex' 'libtheora' 'openssl>=1.1.1') up2date="lynx -dump http://www.icecast.org/download.php | grep icecast-[0-9\.]*tar.gz | sed -ne 's/.*-//;s/.tar.gz//;1 p'" source=(http://downloads.us.xiph.org/releases/icecast/$pkgname-$pkgver.tar.gz $pkgname.service) _F_systemd_units=($pkgname=) Finclude systemd sha1sums=('dc1974235e72dfa5006ab4b8bae0380a2f951a36' \ 'f94e6484cfb4dc6b51fb9f758bbddc2ffef0a003') build() { Fmkdir /var/log/icecast Fbuild --sysconfdir=/etc/icecast Fmv /usr/share/doc/$pkgname /usr/share/doc/$pkgname-$pkgver Fexec chown -R nobody $Fdestdir/var/log/icecast Fexec chgrp -R nogroup $Fdestdir/var/log/icecast # Activating the changeowner mode in config file local line=`grep -n "" $Fdestdir/etc/icecast/icecast.xml | cut -d : -f 1` local line2=`grep -n "" $Fdestdir/etc/icecast/icecast.xml | cut -d : -f 1` Fexec sed -i "`expr $line - 1` d" $Fdestdir/etc/icecast/icecast.xml || Fdie Fexec sed -i "`expr $line2` d" $Fdestdir/etc/icecast/icecast.xml || Fdie Ffile /lib/systemd/system/$pkgname.service Fgenscriptlet } # optimization OK