From 3adfe99b1633e9f3f9e8a8827ab75d72f84d3a92 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 15 Aug 2020 22:33:17 -0300 Subject: Fix: XBPS --- share/hoarder/xbps/unix/install | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'share/hoarder/xbps/unix') diff --git a/share/hoarder/xbps/unix/install b/share/hoarder/xbps/unix/install index 5a16ac9..9b775c7 100755 --- a/share/hoarder/xbps/unix/install +++ b/share/hoarder/xbps/unix/install @@ -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 -- cgit v1.2.3