Some checks failed
ci/someci/tag/woodpecker/5 Pipeline is pending
ci/someci/tag/woodpecker/6 Pipeline is pending
ci/someci/tag/woodpecker/7 Pipeline is pending
ci/someci/tag/woodpecker/1 Pipeline failed
ci/someci/tag/woodpecker/2 Pipeline failed
ci/someci/tag/woodpecker/3 Pipeline failed
ci/someci/tag/woodpecker/4 Pipeline failed
- Introduce multiple built-in themes (`default_dark`, `default_light`, `gruvbox`, `dracula`, `solarized`, `midnight-ocean`, `rose-pine`, `monokai`, `material-dark`, `material-light`). - Implement theming system with customizable color schemes for all UI components in the TUI. - Include documentation for themes in `themes/README.md`. - Add fallback mechanisms for default themes in case of parsing errors. - Support custom themes with overrides via configuration.
51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
# Maintainer: vikingowl <christian@nachtigall.dev>
|
|
pkgname=owlen
|
|
pkgver=0.1.9
|
|
pkgrel=1
|
|
pkgdesc="Terminal User Interface LLM client for Ollama with chat and code assistance features"
|
|
arch=('x86_64')
|
|
url="https://somegit.dev/Owlibou/owlen"
|
|
license=('AGPL-3.0-or-later')
|
|
depends=('gcc-libs')
|
|
makedepends=('cargo' 'git')
|
|
options=(!lto) # avoid LTO-linked ring symbol drop with lld
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
|
sha256sums=('cabb1cfdfc247b5d008c6c5f94e13548bcefeba874aae9a9d45aa95ae1c085ec')
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
export RUSTFLAGS="${RUSTFLAGS:-} -C link-arg=-Wl,--no-as-needed"
|
|
export CARGO_PROFILE_RELEASE_LTO=false
|
|
export CARGO_TARGET_DIR=target
|
|
cargo build --frozen --release --all-features
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
export RUSTFLAGS="${RUSTFLAGS:-} -C link-arg=-Wl,--no-as-needed"
|
|
cargo test --frozen --all-features
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
|
|
# Install binaries
|
|
install -Dm755 target/release/owlen "$pkgdir/usr/bin/owlen"
|
|
install -Dm755 target/release/owlen-code "$pkgdir/usr/bin/owlen-code"
|
|
|
|
# Install documentation
|
|
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
|
|
|
# Install built-in themes for reference
|
|
install -Dm644 themes/README.md "$pkgdir/usr/share/$pkgname/themes/README.md"
|
|
for theme in themes/*.toml; do
|
|
install -Dm644 "$theme" "$pkgdir/usr/share/$pkgname/themes/$(basename $theme)"
|
|
done
|
|
}
|
|
|