other soft work
This commit is contained in:
parent
1e1798c580
commit
77c47160e8
@ -14,3 +14,4 @@ stream_license(){
|
||||
. soft
|
||||
|
||||
cp "$SRC"/man0p "$SRC"/man1p "$SRC"/man3p "$MAN"
|
||||
makewhatis "$MAN"
|
||||
|
23
soft/nethack_3.6.7
Normal file
23
soft/nethack_3.6.7
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
NAME=nethack
|
||||
VERSION=3.6.7
|
||||
UPSTREAM=https://www.nethack.org/download/3.6.7/nethack-367-src.tgz
|
||||
UPSTREAM_TYPE=custom
|
||||
get_upstream(){
|
||||
curl "$UPSTREAM" | gzip -cd | tar x -C "$PREFIX/src"
|
||||
mv "$PREFIX/src/NetHack-3.6.7" "$SRC"
|
||||
}
|
||||
. soft
|
||||
|
||||
NETHACKDIR="$PREFIX/games/nethackdir"
|
||||
mkdir -p "$NETHACKDIR"
|
||||
|
||||
# depends on
|
||||
# ncurses-libtinfo-devel
|
||||
sed -i .orig -e "22s_^\$_PREFIX = $PREFIX_" "$SRC"/sys/unix/Makefile.top
|
||||
sh -c 'cd "$SRC"/sys/unix; sh setup.sh hints/linux'
|
||||
sed -i .orig -e "355s_^\$_#define HACKDIR \"$NETHACKDIR\"_" \
|
||||
"$SRC"/include/config.h # TODO better way to define HACKDIR?
|
||||
$GMAKE -C "$SRC" all
|
||||
$GMAKE -C "$SRC" install
|
@ -11,6 +11,7 @@ FONTS="$SHARE"/fonts
|
||||
LICENSES="$PREFIX"/licenses
|
||||
MAN="$PREFIX"/man
|
||||
SRC="$PREFIX/src/$NAME"
|
||||
mkdir -p "$BIN" "$SHARE" "$FONTS" "$LICENSES" "$MAN" "$SRC"
|
||||
|
||||
soft_advise(){
|
||||
printf "\
|
||||
@ -24,8 +25,8 @@ custom) ;;
|
||||
case "$UPSTREAM_TYPE" in
|
||||
custom) ;;
|
||||
http*) mkdir -p "$SRC"
|
||||
curl -O "$UPSTREAM" --output-dir "$SRC" ;;
|
||||
git) git clone "$UPSTREAM" "$SRC" ;;
|
||||
curl -LO "$UPSTREAM" --output-dir "$SRC" ;;
|
||||
git) git clone "$UPSTREAM" "$SRC" || git -C "$SRC" pull;;
|
||||
*) case "$UPSTREAM" in
|
||||
git:*) UPSTREAM_TYPE=git; get_upstream ;;
|
||||
*.git) UPSTREAM_TYPE=git; get_upstream ;;
|
||||
|
@ -1,4 +1,6 @@
|
||||
NAME=unscii-16-full-ttf
|
||||
# I couldn't find this anywhere except the pkgsrc /fonts/unscii/Makefile
|
||||
LICENSE=gpl20
|
||||
VERSION=nightly
|
||||
UPSTREAM=http://viznut.fi/unscii/unscii-16-full.ttf
|
||||
UPSTREAM_TYPE=http
|
||||
|
Loading…
Reference in New Issue
Block a user