# -*- 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           github 1.0

github.setup        flok99 truncate 0.9
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
checksums           rmd160  c44a7cce2abb8514df719cefa247fb868f9e335a \
                    sha256  5b173282c7ca61cf62e0217da4c88e9e19fa64d10e4cc311eaaf4d2a90d838a7 \
                    size    14639

categories          sysutils
maintainers         nomaintainer
license             AGPL-3

description         truncates a file to a given size
long_description    {*}${description}

homepage            https://www.vanheusden.com/truncate/

patchfiles          truncate.1.patch

use_configure       no

variant universal {}

build.args          CC="${configure.cc} [get_canonical_archflags cc]"

destroot {
    xinstall -m 755 ${worksrcpath}/truncate ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/truncate.1 \
        ${destroot}${prefix}/share/man/man1
}
