-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD
29 lines (24 loc) · 786 Bytes
/
PKGBUILD
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
_pkgname="rmx"
pkgname="${_pkgname}"
pkgver=0.2.0
pkgrel=1
pkgdesc="A program written in Rust for deleting large and very large files"
arch=('x86_64')
url="https://github.com/ismoilovdevml/rmx"
license=('MIT')
depends=('gcc-libs')
makedepends=('rust')
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')
maindirname="${_pkgname}-${pkgver}"
build() {
cd "${srcdir}/${maindirname}"
cargo build --release --locked
}
package() {
cd "${srcdir}/${maindirname}"
install -Dm755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Add completion for the rmx command
install -Dm644 completions/rmx.bash-completion "$pkgdir/usr/share/bash-completion/completions/rmx"
}