summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5edf272192478537a48e30bf92deb2d94e0df7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
pkgname=bfy
pkgver=0.1.2
pkgrel=5
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)
install=
changelog=
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha256sums=('82412e7da16ccad263786df57e6c627f83d6cf81ec41857082d553d6631370ab')
prepare() {
  cd "$pkgname-$pkgver"
  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
  cd "$pkgname-$pkgver"
	export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  cargo build --frozen --release --all-features
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}