mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-09-30 21:42:51 +07:00
Fix Pkgfile.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Description: Tiny system info for CRUX.
|
# Description: Tiny system info for CRUX.
|
||||||
# URL: https://github.com/jschx/ufetch
|
# URL: https://github.com/jschx/ufetch
|
||||||
# Packager: Joe Schillinger, js1 at openmailbox dot org
|
# Packager: Joe Schillinger, me at schil dot li
|
||||||
# Maintainer: 6c37 Team, https://github.com/6c37/crux-ports/issues
|
# Maintainer: 6c37 Team, https://github.com/6c37/crux-ports/issues
|
||||||
# Depends on:
|
# Depends on:
|
||||||
|
|
||||||
@@ -10,14 +10,15 @@ release=1
|
|||||||
source=()
|
source=()
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $PKGMK_SOURCE_DIR
|
cd "${PKGMK_SOURCE_DIR}"
|
||||||
|
|
||||||
if cd $name; then
|
if cd "${name}"; then
|
||||||
git fetch -q; git reset --hard origin/master
|
git fetch -q
|
||||||
|
git reset --hard origin/master
|
||||||
else
|
else
|
||||||
git clone https://github.com/jschx/ufetch $name
|
git clone https://github.com/jschx/ufetch "${name}"
|
||||||
cd $name
|
cd "${name}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install -Dm755 ufetch $PKG/usr/bin/ufetch
|
install -Dm755 ufetch-crux "${PKG}/usr/bin/ufetch"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user