diff --git a/net/Legcord/Portfile b/net/Legcord/Portfile new file mode 100644 index 0000000000000..352f0968a1715 --- /dev/null +++ b/net/Legcord/Portfile @@ -0,0 +1,39 @@ +# -*- 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 Legcord Legcord 1.0.6 v +github.tarball_from archive + +categories net +maintainers {@akierig fastmail.de:akierig} openmaintainer +revision 0 + +checksums rmd160 9e8ea1cd293f26ab446d858b046f7f961d2bb412 \ + sha256 765238e63153268e1d5e14681fbb875abaf83c81aaf174beae8193411b09a540 \ + size 1601820 + +description lightweight alternative to the regular Discord application +long_description ${name} is a {*}${description}. It wraps the Discord web \ + client in a version of Chromium fully optimized for use \ + with Discord's web interface, blocks trackers by default,\ + and supports a variety of client plugin frameworks. + +supported_archs arm64 +platforms {darwin any} +license OSL-3.0 + +depends_build port:pnpm + +use_configure no + +build { + system -W ${worksrcpath} "pnpm install" + system -W ${worksrcpath} "pnpm run build" + system -W ${worksrcpath} "node_modules/.bin/electron-builder -m zip" +} + +destroot { + file copy ${worksrcpath}/dist/mac-${build_arch}/Legcord.app ${destroot}${applications_dir} +}