lure-repo/cockpit-docker-fork/lure.sh

33 lines
790 B
Bash
Raw Normal View History

2023-01-14 08:30:16 -06:00
name='cockpit-docker-fork'
_name='cockpit-docker'
2023-01-14 08:16:28 -06:00
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=()
2023-01-14 08:30:16 -06:00
deps=()
2023-01-14 08:16:28 -06:00
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}"
2023-01-14 08:30:16 -06:00
curl -L "https://github.com/${git_repo}/releases/latest/download/${_name}.tar.gz" -o ${name}.tar.gz
2023-01-14 08:16:28 -06:00
# 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/"
}