lure-repo/fastfetch/lure.sh

30 lines
784 B
Bash
Raw Normal View History

2023-09-12 16:41:55 -05:00
name='fastfetch'
version=VERSION
2023-09-12 16:46:26 -05:00
release=3
2023-09-12 16:41:55 -05:00
desc='Like neofetch, but much faster because written in C.'
homepage='https://github.com/fastfetch-cli/fastfetch'
architectures=('amd64')
maintainer='SinTan1729'
license=('APACHE-2.0' 'MIT')
provides=('fastfetch', 'flashfetch')
conflicts=('fastfetch', 'flashfetch')
2023-09-12 16:51:36 -05:00
dependencies=('rpm2cpio')
2023-09-12 16:41:55 -05:00
git_repo='fastfetch-cli/fastfetch'
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}
2024-02-27 09:56:01 -06:00
curl -L "https://github.com/${git_repo}/releases/latest/download/${name}-linux-amd64.rpm" -o ${name}.rpm
2023-09-12 16:41:55 -05:00
# Build package
echo Creating the package
cd ${pkgdir}
2023-09-12 16:51:36 -05:00
rpm2cpio ${srcdir}/${name}.rpm | cpio -idmv
2023-09-12 16:41:55 -05:00
}