diff options
author | Absobel | 2023-06-27 00:58:32 +0200 |
---|---|---|
committer | Absobel | 2023-06-27 00:58:32 +0200 |
commit | 73ea0b3603b49d9b6f1de923783a907c3f485ea1 (patch) | |
tree | 5885f6037f2b350e68dfdbadd00f40f94768b168 | |
download | aur-73ea0b3603b49d9b6f1de923783a907c3f485ea1.tar.gz |
init
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bb6735e45889 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = projectable + pkgdesc = A TUI file manager built for projects. + pkgver = 1.1.0 + pkgrel = 1 + url = https://github.com/dzfrias/projectable + arch = x86_64 + license = MIT + makedepends = cargo + source = projectable-1.1.0.tar.gz::https://github.com/dzfrias/projectable/archive/1.1.0.tar.gz + sha256sums = 9add5870d108af8ea9e77b9862541870b48d8fd71c15955181157db514bdaf7a + +pkgname = projectable diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a1c0a8fbd0d0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Ayoub Canon <imkonnu@gmail.com> + +pkgname=projectable +_binname=prj +pkgver=1.1.0 +pkgrel=1 +pkgdesc="A TUI file manager built for projects." +arch=('x86_64') +url="https://github.com/dzfrias/projectable" +license=('MIT') +depends=() +makedepends=('cargo') +source=("$pkgname-$pkgver.tar.gz::https://github.com/dzfrias/$pkgname/archive/$pkgver.tar.gz") +sha256sums=('9add5870d108af8ea9e77b9862541870b48d8fd71c15955181157db514bdaf7a') + +prepare() { + cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + cargo update + 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 +} + +# Uncomment next release when tests works again, project works fine, the problem come from the tests +#check() { - +# cd "$pkgname-$pkgver" +# export RUSTUP_TOOLCHAIN=stable +# cargo test --frozen --all-features +#} + +package() { + cd "$pkgname-$pkgver" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_binname" +} + |