42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Maintainer: vikingowl <christian@nachtigall.dev>
|
|
pkgname=owlry-core
|
|
pkgver=1.3.2
|
|
pkgrel=1
|
|
pkgdesc='Core daemon for the Owlry application launcher — manages plugins, providers, and search'
|
|
arch=('x86_64')
|
|
url='https://somegit.dev/Owlibou/owlry'
|
|
license=('GPL-3.0-or-later')
|
|
depends=('gcc-libs' 'openssl')
|
|
makedepends=('cargo')
|
|
source=("$pkgname-$pkgver.tar.gz::https://somegit.dev/Owlibou/owlry/archive/owlry-core-v$pkgver.tar.gz")
|
|
b2sums=('36a1e31cadcfdbe70c0a10c13eddbcea7ae21b7dcfb0aa10a75f44a82a377d6598c4237228457c13260ca4b4b88f12d416541ad7698cf28076124b1a4d3dbbc6')
|
|
|
|
prepare() {
|
|
cd "owlry"
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
|
}
|
|
|
|
build() {
|
|
cd "owlry"
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
export CARGO_TARGET_DIR=target
|
|
cargo build -p owlry-core --frozen --release
|
|
}
|
|
|
|
check() {
|
|
cd "owlry"
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
export CARGO_TARGET_DIR=target
|
|
cargo test -p owlry-core --frozen --lib
|
|
}
|
|
|
|
package() {
|
|
cd "owlry"
|
|
install -Dm755 "target/release/owlryd" "$pkgdir/usr/bin/owlryd"
|
|
install -Dm644 "systemd/owlryd.service" "$pkgdir/usr/lib/systemd/user/owlryd.service"
|
|
install -Dm644 "systemd/owlryd.socket" "$pkgdir/usr/lib/systemd/user/owlryd.socket"
|
|
install -dm755 "$pkgdir/usr/lib/owlry/plugins"
|
|
install -dm755 "$pkgdir/usr/lib/owlry/runtimes"
|
|
}
|