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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           gnuradio 1.0

name                gr-linrad
license             GPL-3
maintainers         {@ra1nb0w irh.it:rainbow} openmaintainer
description         GNU Radio module implementing Linrad network protocol
long_description    {*}${description}

github.setup        daniestevez gr-linrad 5576e4cc287f440690450ae06012101fd2278ac5
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20200425-[string range ${github.version} 0 7]
checksums           rmd160  0c2051f8a3a408a988633de8e433a8ce8253e96f \
                    sha256  74ecbb5263e427e0443e9d8e856e9e8fdb832dc514a36baedbbd743a66f0b697 \
                    size    125883
revision            2

post-destroot {
    # copy GNU Radio examples
    xinstall -m 755 -d ${destroot}${prefix}/share/gnuradio/examples/linrad
    file copy {*}[glob ${worksrcpath}/examples/*] \
        ${destroot}${prefix}/share/gnuradio/examples/linrad
}
