chore(aur): add owlry-plugin-converter PKGBUILD (1.0.2)
This commit is contained in:
14
aur/owlry-plugin-converter/.SRCINFO
Normal file
14
aur/owlry-plugin-converter/.SRCINFO
Normal file
@@ -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
|
||||
41
aur/owlry-plugin-converter/PKGBUILD
Normal file
41
aur/owlry-plugin-converter/PKGBUILD
Normal file
@@ -0,0 +1,41 @@
|
||||
# Maintainer: vikingowl <christian@nachtigall.dev>
|
||||
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"
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user