diff options
author | LevitatingBusinessMan (Rein Fernhout) | 2023-05-24 12:07:48 +0200 |
---|---|---|
committer | LevitatingBusinessMan (Rein Fernhout) | 2023-05-24 12:07:48 +0200 |
commit | 7d2e3ec2d38021b15f8fe06bad2f333ba670fb4e (patch) | |
tree | e5045947e187d4219aa6dc8924b1a2ee97dd3c5d /PKGBUILD | |
parent | 6570a680dd61c5c8844333d581c2c2d33c9904c9 (diff) | |
download | aur-7d2e3ec2d38021b15f8fe06bad2f333ba670fb4e.tar.gz |
Simplified PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -8,28 +8,28 @@ pkgdesc="CLI for the GPT model written in Rust" license=("MIT") makedepends=("rust" "git") url="https://github.com/LevitatingBusinessMan/openai-cli" -source=("git+https://github.com/LevitatingBusinessMan/openai-cli") +source=("$pkgname::git+https://github.com/LevitatingBusinessMan/openai-cli") sha256sums=("SKIP") pkgver() { - cd "${srcdir}/openai-cli" + cd "$pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { - cd "${srcdir}/openai-cli" + cd "$pkgname" export RUSTUP_TOOLCHAIN=stable cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd "${srcdir}/openai-cli" + cd "$pkgname" export RUSTUP_TOOLCHAIN=stable - export CARGO_TARGET_DIR=target1 + export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features } package() { - cd "${srcdir}/openai-cli" + cd "$pkgname" install -Dm755 target/release/openai-cli $pkgdir/usr/bin/openai-cli } |