change to rust
This commit is contained in:
parent
60ebc882cb
commit
9ec3d08c30
7 changed files with 756 additions and 43 deletions
23
makepkg/PKGBUILD
Normal file
23
makepkg/PKGBUILD
Normal 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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue