From 08ae202cd7814c22d7fca138cd63cd271410f6bc Mon Sep 17 00:00:00 2001 From: leafee98 Date: Mon, 3 Apr 2023 22:25:12 +0800 Subject: [PATCH] make use of makedeb on filebrowser --- filebrowser/DEBBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 filebrowser/DEBBUILD diff --git a/filebrowser/DEBBUILD b/filebrowser/DEBBUILD new file mode 100644 index 0000000..995f17c --- /dev/null +++ b/filebrowser/DEBBUILD @@ -0,0 +1,26 @@ +#/usr/bin/env bash + +pkgname="filebrowser" +pkgver="2.23.0" +pkgrel=1 +pkgdesc="Web File Browser" +maintainer="Leafee98 " + +_architecture="linux-amd64" +_tar_name="${_architecture}-filebrowser" + +source=( + "${_tar_name}.tar.gz::https://github.com/filebrowser/filebrowser/releases/download/v${pkgver}/${_tar_name}.tar.gz" + "filebrowser.service::materials/filebrowser.service" +) + +function package { + install -Dm755 ${srcdir}/filebrowser ${pkgdir}/usr/bin/filebrowser + + install -Dm644 -T ${srcdir}/CHANGELOG.md ${pkgdir}/usr/share/filebrowser/ + install -Dm644 -T ${srcdir}/LICENSE ${pkgdir}/usr/share/filebrowser/ + install -Dm644 -T ${srcdir}/README.md ${pkgdir}/usr/share/filebrowser/ + + install -Dm644 ${srcdir}/filebrowser.service ${pkgdir}/usr/lib/systemd/system/filebrowser.service +} +