# -*- 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 Creator 1.0 v 
github.tarball_from releases
revision            0
name                sikarugir
platforms           {darwin >= 19}
# 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/Sikarugir-App/Sikarugir/

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

distname            Creator-v${version}
use_xz              yes

checksums           rmd160  621334417ff0480174168073248450b2bb5cbf3d \
                    sha256  f98d737bf4d1b5274e4a74102b8995ab57fcbb408343cb5d631a09cc4d96cb0f \
                    size    1462908

use_configure       no
build {}

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

pre-activate {
    if {${os.major} == 19 && ${os.minor} < 4 && ${os.platform} eq "darwin"} {
        ui_error "You must first update to macOS 10.15.4."
        return -code error "You must first update to macOS 10.15.4."
    }
}
