Create the base AUR package configration 🤍
This commit is contained in:
parent
6922b7a07d
commit
b4ecaf73a0
1 changed files with 40 additions and 0 deletions
40
archpackage/PKGBUILD
Normal file
40
archpackage/PKGBUILD
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# Maintainer: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
|
||||||
|
pkgname=bfy
|
||||||
|
pkgver=0.1.0
|
||||||
|
pkgrel=1
|
||||||
|
epoch=
|
||||||
|
pkgdesc="brainfuc*k interpreter: a simple brainfuc*k interpreter and REPL writen in rust 🦀🤪"
|
||||||
|
arch=(x86_64)
|
||||||
|
url="https://github.com/anas-elgarhy/$pkgname"
|
||||||
|
license=('MIT')
|
||||||
|
makedepends=(cargo)
|
||||||
|
provides=("$pkgname")
|
||||||
|
conflicts=()
|
||||||
|
replaces=("$pkgname")
|
||||||
|
install=
|
||||||
|
changelog=
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
|
||||||
|
noextract=()
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
export =stable
|
||||||
|
export CARGO_TARGET_DIR=target
|
||||||
|
cargo build --frozen --release --all-features
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
export RUSTUP_TOOLCHAIN=stable
|
||||||
|
cargo test --frozen --all-features
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
sudo install -Dm0755 -t "/usr/bin/" "target/release/$pkgname"
|
||||||
|
}
|
Loading…
Reference in a new issue