diff options
author | Caleb Maclennan | 2022-04-28 16:12:40 +0300 |
---|---|---|
committer | Caleb Maclennan | 2022-04-28 16:12:40 +0300 |
commit | ffc6863c698fbfcc22209e043fd3ada33fdf270d (patch) | |
tree | 02f0f7251d4dae8f5067c068b510362a7c5454e2 | |
download | aur-ffc6863c698fbfcc22209e043fd3ada33fdf270d.tar.gz |
Initial upload: bo 0.3.2-1
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8fd3f863e7c2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = bo + pkgdesc = prose editor written in Rust with vim-like navigation + pkgver = 0.3.2 + pkgrel = 1 + url = https://github.com/brouberol/bo + arch = x86_64 + license = MIT + makedepends = cargo + source = https://github.com/brouberol/bo/archive/v0.3.2/bo-0.3.2.tar.gz + sha256sums = 39394d8453a579e0d38f3a69cc15f8e380ba76336aeeaf86209e1f4bcf7054f7 + +pkgname = bo diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cc1cfed88035 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Caleb Maclennnan <caleb@alerque.com> + +pkgname=bo +pkgver=0.3.2 +pkgrel=1 +pkgdesc='prose editor written in Rust with vim-like navigation' +arch=(x86_64) +url="https://github.com/brouberol/$pkgname" +license=(MIT) +makedepends=(cargo) +_archive="$pkgname-$pkgver" +source=("$url/archive/v$pkgver/$_archive.tar.gz") +sha256sums=('39394d8453a579e0d38f3a69cc15f8e380ba76336aeeaf86209e1f4bcf7054f7') + +prepare() { + cd "$_archive" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$_archive" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +check() { + cd "$_archive" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features +} + +package() { + cd "$_archive" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md +} |