mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-25 22:38:36 -06:00
new: Added htmlq
This commit is contained in:
parent
fe3ffd7cd7
commit
41ac6f3ede
2 changed files with 35 additions and 7 deletions
|
@ -49,4 +49,3 @@ package() {
|
|||
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"
|
||||
}
|
||||
|
29
htmlq/lure.sh
Normal file
29
htmlq/lure.sh
Normal 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}"
|
||||
}
|
Loading…
Reference in a new issue