new: Added htmlq

This commit is contained in:
Sayantan Santra 2023-07-28 02:03:27 -05:00
parent fe3ffd7cd7
commit 41ac6f3ede
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F
2 changed files with 35 additions and 7 deletions

View file

@ -49,4 +49,3 @@ package() {
echo "For key-binding and completion to work with fish, some manual intervention is required" echo "For key-binding and completion to work with fish, some manual intervention is required"
echo "Look here for instructions: https://wiki.archlinux.org/title/fzf#fish" echo "Look here for instructions: https://wiki.archlinux.org/title/fzf#fish"
} }

29
htmlq/lure.sh Normal file
View file

@ -0,0 +1,29 @@
name='htmlq'
version=VERSION
release=1
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
install -Dm755 "./${name}" "${pkgdir}/usr/local/bin/${name}"
}