From b495ea1b5a450c94c493049c4104be9e20896818 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 6 Sep 2022 09:33:24 +0300 Subject: Removed a lot of the gentoo ebuild, following reconfiguration of my setup --- net-im/discord-bin/autogen.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 net-im/discord-bin/autogen.py (limited to 'net-im/discord-bin/autogen.py') diff --git a/net-im/discord-bin/autogen.py b/net-im/discord-bin/autogen.py deleted file mode 100644 index 3bb6e11..0000000 --- a/net-im/discord-bin/autogen.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python3 - -import asyncio - - -async def generate_for(hub, url_path, release_name, binary_name, masked, **pkginfo): - url = await hub.pkgtools.fetch.get_url_from_redirect(f"https://discord.com/api/download{url_path}?platform=linux&format=deb") - - ebuild = hub.pkgtools.ebuild.BreezyBuild( - **pkginfo, - release_name=release_name, - binary_name=binary_name, - keywords="" if masked else "~amd64", - version=url.split("/")[-1].lstrip(f"{release_name}-").rstrip(".deb"), - artifacts=[hub.pkgtools.ebuild.Artifact(url=url)] - ) - - ebuild.push() - - -async def generate(hub, **pkginfo): - await generate_for(hub, "", "discord", "Discord", False, **pkginfo) - await generate_for(hub, "/canary", "discord-canary", "DiscordCanary", True, **pkginfo) - - -# vim: ts=4 sw=4 noet -- cgit v1.2.3