neofetch: initial recipe (#1855)

This commit is contained in:
tts2k
2017-12-08 01:47:37 +07:00
committed by fbrosson
parent e1263384ef
commit 06bf0fcb83

View File

@@ -0,0 +1,46 @@
SUMMARY="A CLI system information tool written in BASH that supports displaying images"
DESCRIPTION="Neofetch displays information about your system next to an image, your OS logo, or any ASCII file of your choice. The main purpose of Neofetch is to be used in screenshots to show other users what OS/Distro you're running, what Theme/Icons you're using etc"
HOMEPAGE="https://github.com/dylanaraps/neofetch"
COPYRIGHT="2016-2017 Dylan Araps"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/dylanaraps/$portName/archive/$portVersion/$portVersionedName.tar.gz"
CHECKSUM_SHA256="4808e76bd81da3602cb5be7e01dfed8223b1109e2792755dd0d54126014ee696"
ARCHITECTURES="any"
PROVIDES="
neofetch
cmd:neofetch
"
REQUIRES="
haiku
cmd:bash
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
"
GLOBAL_WRITABLE_FILES="settings/neofetch/config.conf auto-merge"
USER_SETTINGS_FILES="
settings/neofetch directory
settings/neofetch/config.conf template data/neofetch/config.conf.default
"
PATCH()
{
sed -i \
-e "s|/share/neofetch/|/$relativeDataDir/neofetch/|;" \
Makefile
}
INSTALL()
{
make install PREFIX=$prefix MANDIR=$manDir SYSCONFDIR=$sysconfDir
cp -p $sysconfDir/neofetch/config.conf $dataDir/neofetch/config.conf.default
}