diff --git a/anda/misc/chawan/anda.hcl b/anda/misc/chawan/anda.hcl new file mode 100644 index 0000000000..d5c68f773f --- /dev/null +++ b/anda/misc/chawan/anda.hcl @@ -0,0 +1,8 @@ +project pkg { + rpm { + spec = "chawan.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/misc/chawan/chawan.spec b/anda/misc/chawan/chawan.spec new file mode 100644 index 0000000000..bb669b58d7 --- /dev/null +++ b/anda/misc/chawan/chawan.spec @@ -0,0 +1,62 @@ +%global commit 2723e63772e83595c22ac0691aa5b018f2305a05 +%global commit_date 20251210 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%define debug_package %nil + +Name: chawan +Version: 0~%{commit_date}git.%{shortcommit} +Release: 1%?dist +Summary: TUI web (and (S)FTP, Gopher, Gemini, ...) browser with CSS, inline image and JavaScript support +URL: https://github.com/kachick/chawan +Source0: %url/archive/%commit/chawan-%commit.tar.gz +License: Unlicense +BuildRequires: nim +BuildRequires: gcc +BuildRequires: libssh2-devel +BuildRequires: openssl-devel +BuildRequires: brotli-devel +BuildRequires: pkgconf-pkg-config +BuildRequires: make +Packager: apolunar + +%description +TUI web (and (S)FTP, Gopher, Gemini, ...) browser with CSS, inline image and JavaScript support. + +It uses its own small browser engine developed from scratch, +which can nevertheless display many websites in a manner similar to major graphical browsers. + +It can also be used as a terminal pager. + +%prep +%autosetup -n chawan-%commit + +%build +%make_build + +%install +%make_install PREFIX=/usr + +%files +%{_bindir}/cha +%{_bindir}/mancha +%{_libexecdir}/chawan/ +%{_mandir}/man1/cha.1.* +%{_mandir}/man1/mancha.1.* +%{_mandir}/man5/cha-config.5.* +%{_mandir}/man5/cha-localcgi.5.* +%{_mandir}/man5/cha-mailcap.5.* +%{_mandir}/man5/cha-mime.types.5.* +%{_mandir}/man5/cha-urimethodmap.5.* +%{_mandir}/man7/cha-api.7.* +%{_mandir}/man7/cha-css.7.* +%{_mandir}/man7/cha-image.7.* +%{_mandir}/man7/cha-protocols.7.* +%{_mandir}/man7/cha-terminal.7.* +%{_mandir}/man7/cha-troubleshooting.7.* +%license UNLICENSE +%doc README.md + +%changelog +* Fri Mar 20 2026 apolunar +- Initial commit diff --git a/anda/misc/chawan/update.rhai b/anda/misc/chawan/update.rhai new file mode 100644 index 0000000000..2783072dfd --- /dev/null +++ b/anda/misc/chawan/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("kachick/chawan")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}