# -*- 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.1 v
github.tarball_from releases
revision            0
name                sikarugir
platforms           {darwin >= 19}
license             Restrictive/Distributable
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  0a011bdab55d4952843d48fa24092412bd38195d \
                    sha256  187825e4e6bf96f294cf9ccb65e53049432b3ee2925480e8ad1cbca12a96e819 \
                    size    793320

use_configure       no
build {}

destroot {
    move "${workpath}/Sikarugir 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."
    }
}
