Update PKGBUILD: bump version to 0.1.4, adjust maintainer details, refine build steps, and improve compatibility settings

This commit is contained in:
2025-10-01 23:59:46 +02:00
parent e3eb4d7a04
commit ec6876727f

View File

@@ -1,45 +1,44 @@
# Maintainer: Owlibou # Maintainer: vikingowl <christian@nachtigall.dev>
pkgname=owlen pkgname=owlen
pkgver=0.1.0 pkgver=0.1.4
pkgrel=1 pkgrel=1
pkgdesc="Terminal User Interface LLM client for Ollama with chat and code assistance features" pkgdesc="Terminal User Interface LLM client for Ollama with chat and code assistance features"
arch=('x86_64' 'aarch64') arch=('x86_64')
url="https://somegit.dev/Owlibou/owlen" url="https://somegit.dev/Owlibou/owlen"
license=('AGPL-3.0-only') license=('AGPL-3.0-or-later')
depends=('gcc-libs') depends=('gcc-libs')
makedepends=('cargo' 'git') makedepends=('cargo' 'git')
source=("${pkgname}-${pkgver}.tar.gz::https://somegit.dev/Owlibou/owlen/archive/v${pkgver}.tar.gz") options=(!lto) # avoid LTO-linked ring symbol drop with lld
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('cabb1cfdfc247b5d008c6c5f94e13548bcefeba874aae9a9d45aa95ae1c085ec') sha256sums=('cabb1cfdfc247b5d008c6c5f94e13548bcefeba874aae9a9d45aa95ae1c085ec')
prepare() { prepare() {
cd "$pkgname" cd $pkgname
export RUSTUP_TOOLCHAIN=stable cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
} }
build() { build() {
cd "$pkgname" cd $pkgname
export RUSTUP_TOOLCHAIN=stable export RUSTFLAGS="${RUSTFLAGS:-} -C link-arg=-Wl,--no-as-needed"
export CARGO_PROFILE_RELEASE_LTO=false
export CARGO_TARGET_DIR=target export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features cargo build --frozen --release --all-features
} }
check() { check() {
cd "$pkgname" cd $pkgname
export RUSTUP_TOOLCHAIN=stable export RUSTFLAGS="${RUSTFLAGS:-} -C link-arg=-Wl,--no-as-needed"
cargo test --frozen --all-features cargo test --frozen --all-features
} }
package() { package() {
cd "$pkgname" cd $pkgname
# Install binaries # Install binaries
install -Dm755 "target/release/owlen" "$pkgdir/usr/bin/owlen" install -Dm755 target/release/owlen "$pkgdir/usr/bin/owlen"
install -Dm755 "target/release/owlen-code" "$pkgdir/usr/bin/owlen-code" install -Dm755 target/release/owlen-code "$pkgdir/usr/bin/owlen-code"
# Install license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Install documentation # Install documentation
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
} }