mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-25 06:28:37 -06:00
Added cockpit-docker
This commit is contained in:
parent
0f91b78158
commit
e2bda014d0
1 changed files with 32 additions and 0 deletions
32
cockpit-docker/lure.sh
Normal file
32
cockpit-docker/lure.sh
Normal file
|
@ -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/"
|
||||
}
|
||||
|
Loading…
Reference in a new issue