Browse Source

Now make is fucking working

master
fiorile 1 month ago
parent
commit
80381e8d88
  1. 6
      neetbsd.sh

6
neetbsd.sh

@ -27,7 +27,7 @@ echo 'Installing software for NEETBSD'
# BINARY PACKAGES via pkgin # BINARY PACKAGES via pkgin
echo 'Installing binary packages via the root user using su' echo 'Installing binary packages via the root user using su'
echo 'This operation might take a long moment to complete!!' echo 'This operation might take a long moment to complete!!'
su root -c 'pkgin install enlightenment firefox-esr xfe grafx2 dillo mumble psi kvirc lxqt-archiver stalonetray htop mc ncdu ufetch wget' su root -c 'pkgin -y install enlightenment firefox-esr xfe grafx2 dillo mumble psi kvirc lxqt-archiver stalonetray htop mc ncdu ufetch wget'
# FIX-ME: uncertain packages are left out - xine/mpv(?) and [xterm](terminology) # FIX-ME: uncertain packages are left out - xine/mpv(?) and [xterm](terminology)
# COMPILATION via various utilities # COMPILATION via various utilities
@ -40,7 +40,7 @@ else
echo '<!!!> xdiskusage version 1.60 - please check if this is the latest!' echo '<!!!> xdiskusage version 1.60 - please check if this is the latest!'
wget --quiet -O - https://xdiskusage.sourceforge.net/ | grep 'Download source' wget --quiet -O - https://xdiskusage.sourceforge.net/ | grep 'Download source'
sleep 5 # Some time to read the above warning and result sleep 5 # Some time to read the above warning and result
su root -c 'pkgin install fltk-1.3.9' # FLTK is the sole dependency su root -c 'pkgin -y install fltk-1.3.9' # FLTK is the sole dependency
wget https://xdiskusage.sourceforge.net/xdiskusage-1.60.tgz # Download src wget https://xdiskusage.sourceforge.net/xdiskusage-1.60.tgz # Download src
mv xdiskusage-1.60.tgz /tmp # This operation shall be done in a tmp area mv xdiskusage-1.60.tgz /tmp # This operation shall be done in a tmp area
cd /tmp cd /tmp
@ -49,7 +49,7 @@ else
sed -i 's/(__APPLE__)/(__NetBSD__)/g' xdiskusage.C # sed replacing 'APPLE' with 'NetBSD' sed -i 's/(__APPLE__)/(__NetBSD__)/g' xdiskusage.C # sed replacing 'APPLE' with 'NetBSD'
# ^ xdiskusage now acts like the FreeBSD version - probably hacky, but it seems functional # ^ xdiskusage now acts like the FreeBSD version - probably hacky, but it seems functional
# Configure, compile, install, clean # Configure, compile, install, clean
./configure && make CPPFLAGS=-I/usr/pkg/include:/usr/X11R7/include && su root -c 'make install clean' ./configure && make CPPFLAGS=-I/usr/pkg/include CPPFLAGS+=-I/usr/X11R7/include && su root -c 'make install clean'
# .desktop # .desktop
su root -c 'printf "[Desktop Entry]\nType=Application\nName=xdiskusage\nComment=Graphical disk usage program\nTerminal=false\nTryExec=xdiskusage\nExec=/usr/local/bin/xdiskusage\nCategories=Utility" > /usr/share/applications/xdiskusage.desktop' su root -c 'printf "[Desktop Entry]\nType=Application\nName=xdiskusage\nComment=Graphical disk usage program\nTerminal=false\nTryExec=xdiskusage\nExec=/usr/local/bin/xdiskusage\nCategories=Utility" > /usr/share/applications/xdiskusage.desktop'
cd .. # Go back to /tmp cd .. # Go back to /tmp

Loading…
Cancel
Save