-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Text art meets the functionality of a feature-rich clock/timer / pattern-based time manager. Arttime brings curated text art to otherwise artless terminal emulators of starving developers and other users who can use the terminal.
- Loading branch information
Showing
6 changed files
with
478 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
PORTNAME= arttime | ||
PORTVERSION= 1.9.1 | ||
DISTVERSIONPREFIX= v | ||
CATEGORIES= games | ||
|
||
MAINTAINER= ehaupt@FreeBSD.org | ||
COMMENT= Bring curated text/ascii art to artless terminals | ||
WWW= https://github.com/reportaman/arttime | ||
|
||
LICENSE= GPLv3 | ||
|
||
BUILD_DEPENDS= zsh:shells/zsh | ||
RUN_DEPENDS= zsh:shells/zsh | ||
|
||
USE_GITHUB= yes | ||
GH_ACCOUNT= reportaman | ||
|
||
NO_ARCH= yes | ||
NO_BUILD= yes | ||
|
||
do-install: | ||
${SETENV} ${MAKE_ENV} DESTDIR=${STAGEDIR} ${WRKSRC}/install.sh --prefix ${PREFIX} | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1664875407 | ||
SHA256 (reportaman-arttime-v1.9.1_GH0.tar.gz) = 17a2bbfcdc423540f851ca42ac0403a100b829b2ad06f8e40a1892f995679544 | ||
SIZE (reportaman-arttime-v1.9.1_GH0.tar.gz) = 283943 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- install.sh.orig 2022-09-24 00:11:14 UTC | ||
+++ install.sh | ||
@@ -119,9 +119,9 @@ function printdirerror { | ||
fi | ||
} | ||
|
||
-installdircode=$(checkdir $installdir) | ||
-bindircode=$(checkdir $bindir) | ||
-artdircode=$(checkdir $artdir) | ||
+installdircode=$(checkdir $DESTDIR$installdir) | ||
+bindircode=$(checkdir $DESTDIR$bindir) | ||
+artdircode=$(checkdir $DESTDIR$artdir) | ||
|
||
printdirerror $installdircode $installdir | ||
printdirerror $bindircode $bindir | ||
@@ -139,8 +139,8 @@ installerdir="${0:a:h}" | ||
|
||
# Copy bin files | ||
cd $installerdir/bin | ||
-cp arttime $bindir/arttime | ||
-cp artprint $bindir/artprint | ||
+cp arttime $DESTDIR$bindir/arttime | ||
+cp artprint $DESTDIR$bindir/artprint | ||
|
||
# Copy share files | ||
cd $installerdir/share/arttime/textart | ||
@@ -156,10 +156,10 @@ for ((i = 1; i <= $artfilearraysize; i++)); do | ||
oldmessage='"Custom message for art goes here"' | ||
oldmessage="$(head -n1 $artdir/$file)" | ||
newart="$(tail -n +2 $file)" | ||
- printf '%s\n' "$oldmessage" >$artdir/$file | ||
- printf '%s\n' "$newart" >>$artdir/$file | ||
+ printf '%s\n' "$oldmessage" >$DESTDIR$artdir/$file | ||
+ printf '%s\n' "$newart" >>$DESTDIR$artdir/$file | ||
else | ||
- cp $file $artdir/$file | ||
+ cp $file $DESTDIR$artdir/$file | ||
fi | ||
percentdone=$(((i-1.0)/(artfilearraysize-1.0)*100.0)) | ||
[[ $percentdone -lt 1 ]] && percentdone="0" | ||
@@ -191,3 +191,5 @@ else | ||
fi | ||
fi | ||
tput cnorm | ||
+ | ||
+exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Text art meets the functionality of a feature-rich clock/timer / | ||
pattern-based time manager. Arttime brings curated text art to otherwise | ||
artless terminal emulators of starving developers and other users who | ||
can use the terminal. |
Oops, something went wrong.