Skip to content

Commit

Permalink
games/arttime: add new port
Browse files Browse the repository at this point in the history
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
ehaupt committed Oct 4, 2022
1 parent b52e773 commit 7f2f0cc
Show file tree
Hide file tree
Showing 6 changed files with 478 additions and 0 deletions.
1 change: 1 addition & 0 deletions games/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
SUBDIR += apricots
SUBDIR += aquaria
SUBDIR += armagetronad
SUBDIR += arttime
SUBDIR += arx-libertatis
SUBDIR += ascii-invaders
SUBDIR += asciiquarium
Expand Down
24 changes: 24 additions & 0 deletions games/arttime/Makefile
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= [email protected]
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>
3 changes: 3 additions & 0 deletions games/arttime/distinfo
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
46 changes: 46 additions & 0 deletions games/arttime/files/patch-install.sh
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
4 changes: 4 additions & 0 deletions games/arttime/pkg-descr
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.
Loading

0 comments on commit 7f2f0cc

Please sign in to comment.