diff options
author | darko-mesaros | 2024-03-31 01:04:59 -0700 |
---|---|---|
committer | darko-mesaros | 2024-03-31 01:04:59 -0700 |
commit | c44cdf484b36a71263947eb6cd3d6b435a359940 (patch) | |
tree | f5275936a373e8ce79b3c257386833eaa7bcbab3 | |
download | aur-c44cdf484b36a71263947eb6cd3d6b435a359940.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c994a7be5190 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = bedrust-git + pkgdesc = A command line tool to invoke and work with Large Language models on AWS, using Amazon Bedrock + pkgver = 0.7.0.73.g365b233 + pkgrel = 1 + url = https://github.com/darko-mesaros/bedrust + arch = x86_64 + license = MIT + makedepends = rust + makedepends = cargo + makedepends = git + provides = bedrust + options = !lto + options = !debug + source = git+https://github.com/darko-mesaros/bedrust.git + sha256sums = SKIP + +pkgname = bedrust-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bd749a75f02f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Darko Mesaros<d at rko dot rs> +_pkgname="bedrust" +pkgname=${_pkgname}-git +pkgver=0.7.0.73.g365b233 +pkgrel=1 +pkgdesc="A command line tool to invoke and work with Large Language models on AWS, using Amazon Bedrock" +arch=("x86_64") +url="https://github.com/darko-mesaros/bedrust" +license=('MIT') +groups=() +makedepends=("rust" "cargo" "git") +provides=("bedrust") +source=("git+https://github.com/darko-mesaros/bedrust.git") +sha256sums=("SKIP") +options=(!lto !debug) + +pkgver() { + cd "$srcdir/$_pkgname" + echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$_pkgname" + cargo build --release +} + +check() { + cd "$srcdir/$_pkgname" + cargo test --release +} + +package() { + cd "$srcdir/$_pkgname" + install -Dm755 target/release/bedrust "$pkgdir/usr/bin/bedrust" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}" +} |