lure-repo/vuetorrent/lure.sh

31 lines
920 B
Bash
Raw Normal View History

2023-03-06 10:12:51 -06:00
name='vuetorrent'
version=VERSION
2023-03-06 10:16:06 -06:00
release=3
2023-03-06 10:12:51 -06:00
desc='The sleekest looking WEBUI for qBittorrent made with Vuejs!'
homepage='https://github.com/WDaan/VueTorrent'
architectures=('amd64')
maintainer='SinTan1729'
license=('GPL3')
provides=('vuetorrent')
conflicts=('vuetorrent')
git_repo='WDaan/VueTorrent'
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}.zip" -o ${name}.zip
# Unzip and install
2023-03-06 10:16:06 -06:00
mkdir -p "${pkgdir}/opt/${name}"
2023-03-06 10:17:40 -06:00
unzip -qq vuetorrent.zip -d "${pkgdir}/opt/${name}"
2023-03-06 10:12:51 -06:00
# Print usage instructions
echo "Make sure to choose /opt/vuetorrent as the location of the custom WebUI in qBittorrent settings."
echo "You might nedd to mount this directory first if you're using docker."
}