change to rust

This commit is contained in:
hikari 2024-08-22 16:11:39 +03:30
parent 60ebc882cb
commit 9ec3d08c30
7 changed files with 756 additions and 43 deletions

23
makepkg/PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
pkgname=penc
pkgver=1.0.1
pkgrel=1
pkgdesc="parch linux encrypted compress"
arch=('x86_64')
url="https://git.parchlinux.com/applications/penc"
license=('GPL-3')
depends=('gcc-libs')
makedepends=('git' 'rust')
source=("$pkgname::git+$url#branch=main")
md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
cargo build --release
}
package() {
cd "$srcdir/$pkgname"
# install binary
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/penc"
}