mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-25 22:38:36 -06:00
new: Add fastfetch
This commit is contained in:
parent
b5a74429f6
commit
05600eba1a
1 changed files with 28 additions and 0 deletions
28
fastfetch/lure.sh
Normal file
28
fastfetch/lure.sh
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name='fastfetch'
|
||||||
|
version=VERSION
|
||||||
|
release=1
|
||||||
|
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')
|
||||||
|
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}
|
||||||
|
curl -L "https://github.com/${git_repo}/releases/latest/download/${name}-${version}-Linux.rpm" -o ${name}.rpm
|
||||||
|
# Build package
|
||||||
|
echo Creating the package
|
||||||
|
cd ${pkgdir}
|
||||||
|
rpm2cpio ../${name}.rpm | zstd -d | cpio -idmv
|
||||||
|
}
|
Loading…
Reference in a new issue