From 61d42dec3c998d88778abbc3bea3b47c05dc5654 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Thu, 13 Apr 2023 09:36:41 +0800 Subject: [PATCH] add package: static-deployer --- static-deployer-git/DEBBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 static-deployer-git/DEBBUILD diff --git a/static-deployer-git/DEBBUILD b/static-deployer-git/DEBBUILD new file mode 100644 index 0000000..2886519 --- /dev/null +++ b/static-deployer-git/DEBBUILD @@ -0,0 +1,25 @@ +#/usr/bin/env bash + +pkgname="static-deployer" +pkgver=0.0.6.g7067e8f +pkgrel=1 +pkgdesc="A simple daemon to deploy static site" +url="https://git.leafee98.com/leafee98/static_deployer" +maintainer="Leafee98 " + +source=( + "static_deployer::git+https://git.leafee98.com/leafee98/static_deployer.git" +) + +function pkgver { + git -C src/static_deployer describe --tags --long | sed -e 's/^v//; s/-/./g' +} + +function pkgver { + git -C "${srcdir}/static_deployer" describe --tags --long | sed 's/^v//;s/-/./g' +} + +function package { + install -D "${srcdir}/static_deployer/main.py" "${pkgdir}/usr/bin/static-deployer" +} +