mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 11:26:41 +02:00
50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
# Maintainer: qaqland <qaq@qaq.land>
|
|
pkgname=dufs
|
|
pkgver=0.43.0
|
|
pkgrel=0
|
|
pkgdesc="A file server that supports static serving, uploading, searching, accessing control, webdav..."
|
|
url="https://github.com/sigoden/dufs"
|
|
arch="all"
|
|
license="MIT OR Apache-2.0"
|
|
makedepends="cargo cargo-auditable"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/sigoden/dufs/archive/v$pkgver/dufs-$pkgver.tar.gz"
|
|
options="net" # cargo fetch
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
|
|
target/release/dufs --completions bash > dufs
|
|
target/release/dufs --completions fish > dufs.fish
|
|
target/release/dufs --completions zsh > _dufs
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/dufs -t "$pkgdir"/usr/bin
|
|
|
|
install -Dm644 LICENSE-* -t "$pkgdir"/usr/share/doc/license
|
|
install -Dm644 README.md -t "$pkgdir"/usr/share/doc/dufs
|
|
|
|
install -Dm644 dufs -t "$pkgdir"/usr/share/bash-completion/completions
|
|
install -Dm644 dufs.fish -t "$pkgdir"/usr/share/fish/vendor_completions.d
|
|
install -Dm644 _dufs -t "$pkgdir"/usr/share/zsh/site-functions
|
|
}
|
|
|
|
sha512sums="
|
|
ab162f64cf4a43712a4fa204fe8abdef53bf8876805d15d9a3eaac1617bebc2891f5039ad3e84d5f9516f40ee9bc03cb6d2eaea103828f82bcf83e9ea08e8aec dufs-0.43.0.tar.gz
|
|
"
|