# -*- 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            Sikarugir-App winetricks 20251121
github.tarball_from     archive

revision                0
platforms               {darwin any}
categories              emulators
license                 LGPL-2.1+
supported_archs         noarch
maintainers             {@gcenx}
homepage                http://www.winetricks.org/

description             downloads and installs various redistributable \
                        runtime libraries

long_description        ${subport} can help you prepare your system for Windows \
                        applications that mistakenly assume all users' \
                        systems have all the needed redistributable runtime \
                        libraries or fonts.

checksums               rmd160  e5542f14cbc8a1ac194c87114350013bb7be9ad6 \
                        sha256  72b95406a8cd615ea06916aaec01db49233042823be17eb0134a26a08ff28540 \
                        size    688756

depends_run             bin:curl:curl \
                        port:cabextract \
                        path:bin/openssl:openssl \
                        port:p7zip \
                        bin:unzip:unzip

use_configure           no
build {}

destroot.args           PREFIX=${prefix}

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} COPYING README.md ${destroot}${docdir}
}
