From b4de6a37915168b1e46a493ee5ac2979cf0e7c7b Mon Sep 17 00:00:00 2001 From: vikingowl Date: Sat, 28 Mar 2026 10:24:11 +0100 Subject: [PATCH] chore(aur): add owlry-plugin-converter PKGBUILD (1.0.2) --- aur/owlry-plugin-converter/.SRCINFO | 14 +++++++ aur/owlry-plugin-converter/PKGBUILD | 41 +++++++++++++++++++ .../owlry-plugin-converter.install | 9 ++++ 3 files changed, 64 insertions(+) create mode 100644 aur/owlry-plugin-converter/.SRCINFO create mode 100644 aur/owlry-plugin-converter/PKGBUILD create mode 100644 aur/owlry-plugin-converter/owlry-plugin-converter.install diff --git a/aur/owlry-plugin-converter/.SRCINFO b/aur/owlry-plugin-converter/.SRCINFO new file mode 100644 index 0000000..68ecba3 --- /dev/null +++ b/aur/owlry-plugin-converter/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = owlry-plugin-converter + pkgdesc = Unit and currency conversion plugin for Owlry — convert temperature, weight, length, currency, and more + pkgver = 1.0.2 + pkgrel = 1 + url = https://somegit.dev/Owlibou/owlry-plugins + install = owlry-plugin-converter.install + arch = x86_64 + license = GPL-3.0-or-later + makedepends = cargo + depends = owlry-core + source = owlry-plugin-converter-1.0.2.tar.gz::https://somegit.dev/Owlibou/owlry-plugins/archive/owlry-plugin-converter-v1.0.2.tar.gz + b2sums = 3bb841ca446d7c952b04483a6144c913d98944da80a59ba34a0372bdf6de307cf9f80c70d74697e9aedda4d4b03411ad4ac1747e9745b69fb9e3f7fd2f86b05b + +pkgname = owlry-plugin-converter diff --git a/aur/owlry-plugin-converter/PKGBUILD b/aur/owlry-plugin-converter/PKGBUILD new file mode 100644 index 0000000..ea1bcaf --- /dev/null +++ b/aur/owlry-plugin-converter/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: vikingowl +pkgname=owlry-plugin-converter +pkgver=1.0.2 +pkgrel=1 +pkgdesc="Unit and currency conversion plugin for Owlry — convert temperature, weight, length, currency, and more" +arch=('x86_64') +url="https://somegit.dev/Owlibou/owlry-plugins" +license=('GPL-3.0-or-later') +depends=('owlry-core') +makedepends=('cargo') +install=owlry-plugin-converter.install +source=("$pkgname-$pkgver.tar.gz::https://somegit.dev/Owlibou/owlry-plugins/archive/$pkgname-v$pkgver.tar.gz") +b2sums=('3bb841ca446d7c952b04483a6144c913d98944da80a59ba34a0372bdf6de307cf9f80c70d74697e9aedda4d4b03411ad4ac1747e9745b69fb9e3f7fd2f86b05b') + +_cratename=owlry-plugin-converter + +prepare() { + cd "owlry-plugins" + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + +build() { + cd "owlry-plugins" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build -p $_cratename --frozen --release +} + +check() { + cd "owlry-plugins" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo test -p $_cratename --frozen +} + +package() { + cd "owlry-plugins" + install -Dm755 "target/release/lib${_cratename//-/_}.so" \ + "$pkgdir/usr/lib/owlry/plugins/lib${_cratename//-/_}.so" +} diff --git a/aur/owlry-plugin-converter/owlry-plugin-converter.install b/aur/owlry-plugin-converter/owlry-plugin-converter.install new file mode 100644 index 0000000..5a8ba44 --- /dev/null +++ b/aur/owlry-plugin-converter/owlry-plugin-converter.install @@ -0,0 +1,9 @@ +pre_install() { + # Remove old plugin files that may have different names + rm -f /usr/lib/owlry/plugins/libconverter.so + rm -f /usr/lib/owlry/plugins/libowlry_plugin_converter.so +} + +pre_upgrade() { + pre_install +}