# -*- 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.6.2
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  c5dadf4eb79d3bf778de4a10ddc3a286ac5d3272 \
                    sha256  199f5cd6c65cd23af9323bc464f0d33f53d22686135695b4aa4ddf2ec43534ae \
                    size    1962065

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
}
