]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: XBPS
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 16 Aug 2020 01:33:17 +0000 (22:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 16 Aug 2020 01:33:17 +0000 (22:33 -0300)
share/hoarder/xbps/unix/install

index 5a16ac914d2ce011d9c6e8a7eb5839bff64a031d..9b775c794b0c7d90c6bbe1ee1cec7b98e3e9d303 100755 (executable)
@@ -2,19 +2,17 @@
 #
 # Install XBPS package manager.
 #
-
 # Parameters
 SHARE="$1"
-BASE="$SHARE/../.."
-FOLDER="/usr/local"
+LIB="$2"
 DESTDIR="$HOME/.xbps"
 
 # Include basic functions
 . $SHARE/trashman/functions || exit 1
 
 # Check for curl
-if ! which curl > /dev/null 2>&1; then
-  trashman_echo "Needs curl to install XBPS"
+if ! which make > /dev/null 2>&1; then
+  trashman_echo "Needs make to install XBPS"
   exit 1
 fi
 
@@ -22,11 +20,11 @@ fi
 mkdir -p $HOME/.local/src
 
 # Build and install
-git clone https://github.com/void-linux/xbps $HOME/.local/src
-cd $HOME/.local/src/xbps
-./configure --enable-rpath --prefix=/usr --sysconfdir=/etc
-make -j$(nproc)
-make DESTDIR=$DESTDIR install clean
+git clone https://github.com/void-linux/xbps $HOME/.local/src || exit 1
+cd $HOME/.local/src/xbps                                      || exit 1
+./configure --enable-rpath --prefix=/usr --sysconfdir=/etc    || exit 1
+make -j$(nproc)                                               || exit 1
+make DESTDIR=$DESTDIR install clean                           || exit 1
 
 # Remove source
 #rm -rf $HOME/.local/src/xbps