diff --git a/anda/crystal/blahaj/anda.hcl b/anda/crystal/blahaj/anda.hcl new file mode 100644 index 0000000000..d132b45476 --- /dev/null +++ b/anda/crystal/blahaj/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "blahaj.spec" + } +} diff --git a/anda/crystal/blahaj/blahaj.spec b/anda/crystal/blahaj/blahaj.spec new file mode 100644 index 0000000000..314f1f168b --- /dev/null +++ b/anda/crystal/blahaj/blahaj.spec @@ -0,0 +1,34 @@ +%define debug_package %nil + +Name: blahaj +Version: 2.0.1 +Release: 1%?dist +Summary: Gay sharks at your local terminal - lolcat-like CLI tool +License: BSD-2-Clause +URL: https://blahaj.queer.software +Source0: https://github.com/GeopJr/BLAHAJ/archive/refs/tags/v%version.tar.gz +BuildRequires: crystal make gcc libyaml-devel pcre-devel +ExclusiveArch: x86_64 + +%description +Apart from a cute cuddly shark plushie from IKEA, BLĂ…HAJ is a lolcat-like CLI tool that colorizes your input, shows flags and prints colorful sharks! +It has a wide variety of flags/colors to choose from and many options from flag size to whether to colorize by line, word or character. + +%prep +%autosetup -n BLAHAJ-%{version} + +%build +%make_build + +%install +%make_install + +%check +make test_mt + +%files +/usr/bin/blahaj + +%changelog +* Sat Apr 15 2023 windowsboy111 +- Initial package. diff --git a/anda/crystal/blahaj/update.rhai b/anda/crystal/blahaj/update.rhai new file mode 100644 index 0000000000..773fba51d2 --- /dev/null +++ b/anda/crystal/blahaj/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("GeopJr/BLAHAJ")); diff --git a/anda/crystal/crystal/anda.hcl b/anda/crystal/crystal/anda.hcl new file mode 100644 index 0000000000..d2a5a14455 --- /dev/null +++ b/anda/crystal/crystal/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "crystal.spec" + } +} diff --git a/anda/crystal/crystal/crystal.spec b/anda/crystal/crystal/crystal.spec new file mode 100644 index 0000000000..3299aaac7e --- /dev/null +++ b/anda/crystal/crystal/crystal.spec @@ -0,0 +1,45 @@ +%define debug_package %nil + +Name: crystal +Version: 1.8.0 +Release: 1%?dist +Summary: The Crystal Programming Language +License: Apache-2.0 +URL: https://crystal-lang.org/ +Source0: https://github.com/crystal-lang/crystal/releases/download/%version/crystal-%version-1-linux-x86_64-bundled.tar.gz +ExclusiveArch: x86_64 + +%description +%summary. + +%prep +%autosetup -n crystal-%version-1 + +%build + +%install +mkdir -p %buildroot/usr/bin +mkdir -p %buildroot/usr/share +mkdir -p %buildroot/usr/lib/crystal +install -Dm755 bin/* %buildroot/usr/bin/ +cp -r share/* %buildroot/usr/share/ +cp -r lib/crystal/* %buildroot/usr/lib/crystal/ + +%files +%license /usr/share/licenses/crystal/LICENSE +/usr/bin/crystal +/usr/lib/crystal/ +/usr/share/zsh/site-functions/_crystal +/usr/share/man/man1/crystal.1.gz +/usr/share/crystal/ +/usr/share/fish/vendor_completions.d/crystal.fish +/usr/share/bash-completion/completions/crystal + +/usr/bin/shards +/usr/share/man/man1/shards.1.gz +/usr/share/man/man5/shard.yml.5.gz + +%changelog +* Sat Apr 15 2023 windowsboy111 +- Initial package. + diff --git a/anda/crystal/crystal/update.rhai b/anda/crystal/crystal/update.rhai new file mode 100644 index 0000000000..8c44f774a8 --- /dev/null +++ b/anda/crystal/crystal/update.rhai @@ -0,0 +1,2 @@ +let html = get("https://crystal-lang.org/"); +rpm.version(find("Latest release <.+>(.+)<\\/a>", html, 1))