# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                MediathekView
version             13.7.1
revision            0

categories          multimedia
maintainers         nomaintainer
platforms           darwin
license             GPL-3
supported_archs     x86_64

description         A mediathek browser for German TV broadcasts
long_description    ${description}

homepage            https://mediathekview.de
master_sites        https://download.mediathekview.de/stabil/

distname            ${name}-${version}-mac
use_dmg             yes
use_configure       no

checksums           rmd160  e1ed1389bc475101874a66ffbce1c39ed76cff87 \
                    sha256  4e9cc25d62b6fe4420da6b881c41d067beef6f4c3beeae47a9ce66331a97f14c \
                    size    150445912

build {}

destroot {
    xinstall -d -m 0755 ${destroot}${applications_dir}
    move ${worksrcpath}/${name}.app ${destroot}${applications_dir}
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)-mac${extract.suffix}"
