#Packager: Tim beech pkgname=yle-dl pkgver=2.15 pkgrel=1tjb source=("https://github.com/aajanki/yle-dl/releases/$pkgver.tar.gz" "https://raw.githubusercontent.com/K-S-V/Scripts/master/AdobeHDS.php") sourcetemplate=http://people.salixos.org/mimosa/$pkgname/$pkgver docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://aajanki.github.io/yle-dl/index-en.html slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "yle-dl (download videos from Yle Areena)" "yle-dl is a command-line program for downloading media files from the" "video streaming services of the Finnish national broadcasting company" "Yle: Yle Areena, Elävä arkisto, and Yle news. The videos are saved in" "Flash video (FLV) format." ) build() { cd $startdir/src/$pkgname-$pkgver sed 's|/usr/local|/usr|' -i yle-dl sed "s|'php'|'php', '-d extension=bcmath.so', '-d extension=curl.so', '-d extension=mcrypt.so'|" -i yle-dl make prefix=/usr DESTDIR="$startdir/pkg" install install -D -m644 "$startdir/src/AdobeHDS.php" "$startdir/pkg/usr/share/yle-dl/AdobeHDS.php" install -D -m644 "$startdir/src/$pkgname-$pkgver/yle-dl" "$startdir/pkg/usr/share/yle-dl/yle-dl.py" install -D -m755 "$startdir/src/$pkgname-$pkgver/yle-dl" "$startdir/pkg/usr/bin/yle-dl" }