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

PortSystem          1.0
PortGroup           makefile 1.0

name                deark
version             1.7.1
revision            0

categories          archivers
license             MIT
maintainers         {gmail.com:srirangav @srirangav} openmaintainer

description         A utility for file format and metadata analysis, \
                    data extraction, decompression, and image format decoding
long_description    Deark is a command-line utility that can decode certain \
                    types of files, and either convert them to a more-modern or \
                    more-readable format, or extract embedded files from them

homepage            https://entropymine.com/deark/
master_sites        ${homepage}/releases/

checksums           rmd160  d24d3accd94ddde8330d888a545bc0d3e2f8431f \
                    sha256  f7e7d286e0e3b8003e1e758b59f8aee1fa2dd24e1c9aceb03d4e603cb8efcad4 \
                    size    2510959

depends_build       port:help2man

post-build {
    system -W ${worksrcpath} "make man"
}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/bin
    xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
    xinstall -m 755 -s ${worksrcpath}/${name} ${destroot}${prefix}/bin
    xinstall -m 644 -s ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
}
