lure-repo/htmlq/lure.sh

30 lines
726 B
Bash
Raw Normal View History

2023-07-28 02:03:27 -05:00
name='htmlq'
version=VERSION
2023-07-30 13:40:59 -05:00
release=2
2023-07-28 02:03:27 -05:00
desc='Like jq, but for HTML.'
homepage='https://github.com/mgdm/htmlq'
architectures=('amd64')
maintainer='SinTan1729'
license=('MIT')
provides=('htmlq')
conflicts=('htmlq')
git_repo='mgdm/htmlq'
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/htmlq-x86_64-linux.tar.gz" -o ${name}.tar.gz
# Build package
echo "Creating the package"
tar -xzf "${name}.tar.gz" -C .
# Binaries
2023-07-30 13:40:59 -05:00
install -Dm755 "./${name}" "${pkgdir}/usr/bin/${name}"
2023-07-28 02:03:27 -05:00
}