summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f7d307eef9ff7053f1418dc2ff0c445117fc700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Alex Merry <dev@randomguy3.me.uk>

pkgname=get_iplayer
pkgver=3.35
pkgrel=1
pkgdesc="Allows you to download or stream any iPlayer programme from the BBC in H.264 (Quicktime/mp4) format, any radio programmes in MP3 or RealAudio format"
arch=('any')
url="https://github.com/get-iplayer/get_iplayer/"
license=('GPL3')
depends=(
    'perl>=5.10.1'
    'perl-json-pp' # part of perl from 5.14 onwards
    'perl-lwp-protocol-https' # Basic access to servers
    'perl-libwww' # Basic access to servers
    'perl-xml-libxml'  # Page scraping and subtitles
    'perl-mojolicious') # Fetching indexes
optdepends=(
    'atomicparsley: add tags to MP4 files'
    'ffmpeg: convert flash (flv) files'
    'perl-cgi: web PVR manager')
install=get_iplayer.install
source=(https://github.com/get-iplayer/get_iplayer/archive/refs/tags/v${pkgver}.tar.gz)
sha256sums=('048ff5f9bd5c6c0f51a05fd0c97eb137029d1950b594384a920c3c674f121e8c')

package() {
    cd "$srcdir/$pkgname-$pkgver"
    install -m755 -D get_iplayer $pkgdir/usr/bin/get_iplayer
    install -m755 -D get_iplayer.cgi $pkgdir/usr/bin/get_iplayer.cgi

    install -m644 -D README.md $pkgdir/usr/share/doc/get_iplayer/README.md

    install -D -m644 get_iplayer.1 ${pkgdir}/usr/share/man/man1/get_iplayer.1
}

# vim:set ts=4 sw=4 et: