From e2bda014d03f6460b2347afed9510e5bd4723fbc Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sat, 14 Jan 2023 19:46:28 +0530 Subject: [PATCH] Added cockpit-docker --- cockpit-docker/lure.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cockpit-docker/lure.sh diff --git a/cockpit-docker/lure.sh b/cockpit-docker/lure.sh new file mode 100644 index 0000000..b4a6e26 --- /dev/null +++ b/cockpit-docker/lure.sh @@ -0,0 +1,32 @@ +name='cockpit-docker' +version=VERSION +release=1 +desc='Manage your docker containers from Cockpit' +homepage='https://github.com/mrevjd/cockpit-docker' +architectures=('all') +maintainer='SinTan1729' +license=('LGPL-2.1') +provides=() +conflicts=() +deps=('cockpit') +git_repo='mrevjd/cockpit-docker' + +sources=() +checksums=() + +version() { + printf "$(curl -sL "https://api.github.com/repos/${git_repo}/releases/latest" | jq -r '.tag_name')" +} + +package() { + # Pull sources + echo "Pulling ${name} ${version}" + curl -L "https://github.com/${git_repo}/releases/latest/download/${name}.tar.gz" -o ${name}.tar.gz + # Build package + echo "Creating the package" + tar -xf ${name}.tar.gz -C . + # Binary + mkdir -p "${pkgdir}/usr/share/cockpit" + mv docker "${pkgdir}/usr/share/cockpit/" +} + \ No newline at end of file