Skip to content

Commit

Permalink
user/wgcf: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiofb-dev authored and nekopsykose committed Sep 25, 2024
1 parent a3410cf commit 69c6103
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions user/wgcf/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pkgname = "wgcf"
pkgver = "2.2.22"
pkgrel = 0
build_style = "go"
hostmakedepends = ["go"]
pkgdesc = "Unofficial CLI for Cloudflare Warp"
maintainer = "cassiofb-dev <[email protected]>"
license = "MIT"
url = "https://github.com/ViRb3/wgcf"
source = f"{url}/archive/refs/tags/v{pkgver}.tar.gz"
sha256 = "949cfc61681683ef44af9561bf8080ea87f04d4da00f97d0512143956b6e27b9"


def post_build(self):
for shell in ["bash", "fish", "zsh"]:
with open(self.cwd / f"wgcf.{shell}", "w") as f:
self.do(f"{self.make_dir}/wgcf", "completion", shell, stdout=f)


def post_install(self):
self.install_license("LICENSE")

for shell in ["bash", "fish", "zsh"]:
self.install_completion(f"wgcf.{shell}", shell)

0 comments on commit 69c6103

Please sign in to comment.