#!/SBUILD _disabled: false pkg: "dufs" pkg_id: "sigoden.dufs" pkg_type: "static" ghcr_pkg: "sigoden/dufs" category: - "ConsoleOnly" - "Network" - "Utility" description: "A file server that supports static serving, uploading, searching, accessing control, webdav" homepage: - "https://github.com/sigoden/dufs" maintainer: - "QaidVoid (contact@qaidvoid.dev)" license: - "Apache-2.0" - "MIT" build_asset: - url: "https://raw.githubusercontent.com/sigoden/dufs/main/LICENSE-MIT" out: "LICENSE" - url: "https://github.com/sigoden/dufs/releases/download/v${PKGVER}/dufs-v${PKGVER}-${ARCH}-unknown-linux-musl.tar.gz" out: "dufs.tar.gz" note: - "Official binary from https://github.com/sigoden/dufs" - "[PORTABLE] (Portable Static Binary)" - "[NO_DESKTOP_INTEGRATION]" provides: - "dufs" repology: - "dufs" src_url: - "https://github.com/sigoden/dufs" tag: - "file-server" - "webdav" - "http" x_exec: host: - "x86_64-linux" - "aarch64-linux" shell: "sh" pkgver: | curl -qfsSL "https://api.github.com/repos/sigoden/dufs/releases/latest" | jq -r '.tag_name' | tr -d 'v' run: | tar -xf "dufs.tar.gz" -C "$SBUILD_TMPDIR/" mv "$SBUILD_TMPDIR/dufs" "$SBUILD_OUTDIR/$PKG" rm -rf "dufs.tar.gz"