From cc0f7e30db63dd038c72e82c0a7ca24a0e166201 Mon Sep 17 00:00:00 2001 From: jschx Date: Wed, 15 Apr 2015 18:21:17 -0500 Subject: [PATCH] Add a Pkgfile for installation with pkgutils. --- Pkgfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Pkgfile diff --git a/Pkgfile b/Pkgfile new file mode 100644 index 0000000..be68440 --- /dev/null +++ b/Pkgfile @@ -0,0 +1,23 @@ +# Description: Tiny system info for CRUX. +# URL: https://github.com/jschx/ufetch +# Packager: Joe Schillinger, js1 at openmailbox dot org +# Maintainer: 6c37 Team, https://github.com/6c37/crux-ports/issues +# Depends on: + +name=ufetch +version=git +release=1 +source=() + +build() { + cd $PKGMK_SOURCE_DIR + + if cd $name; then + git fetch -q; git reset --hard origin/master + else + git clone https://github.com/jschx/ufetch $name + cd $name + fi + + install -Dm755 ufetch $PKG/usr/bin/ufetch +}