# -*- 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        Kegworks-App Winery 2.0.4 v
github.tarball_from releases
revision            0
name                kegworks
platforms           {darwin >= 19.4}
# Winery is LGPL-2.1 but will be changed later once the new codebase it finished
license             LGPL-2.1
categories          emulators

supported_archs     x86_64
maintainers         {@Gcenx}
homepage            https://github.com/Kegworks-App/Kegworks/

description         ${name} is a user-friendly tool used to make ports of Microsoft Windows software to Apple's macOS.
long_description    {*}${description}

distname            winery-v${version}
use_xz              yes

checksums           rmd160  b9dfd427ae09246a12f28a780c538bfc3f94a109 \
                    sha256  626f9bf9e6c29493906e371a6f1eb72acecb21cef68516890eb98ef59e844160 \
                    size    817976

use_configure       no
build {}

destroot {
    move "${workpath}/Winery.app" "${destroot}${applications_dir}/Kegworks Winery.app"
    system -W ${destroot}${applications_dir} "/usr/bin/codesign --deep --force --sign - 'Kegworks Winery.app'"
}
