add: blahaj crystal (#384)

Signed-off-by: windowsboy111 <wboy111@outlook.com>
This commit is contained in:
madomado
2023-04-16 12:22:10 +08:00
committed by windowsboy111
parent 2a2a61222f
commit 4f9932366d
6 changed files with 94 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "blahaj.spec"
}
}
+34
View File
@@ -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 <windowsboy111@fyralabs.com>
- Initial package.
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("GeopJr/BLAHAJ"));
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "crystal.spec"
}
}
+45
View File
@@ -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 <windowsboy111@fyralabs.com>
- Initial package.
+2
View File
@@ -0,0 +1,2 @@
let html = get("https://crystal-lang.org/");
rpm.version(find("Latest release <.+>(.+)<\\/a>", html, 1))