aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hoarder/xbps/unix/install18
1 files changed, 8 insertions, 10 deletions
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