diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-08-15 22:33:17 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-08-15 22:33:17 -0300 |
commit | 3adfe99b1633e9f3f9e8a8827ab75d72f84d3a92 (patch) | |
tree | dfa6b0193d9624a1a6c090a64d78645bfbc5c096 /share/hoarder/xbps/unix | |
parent | a9ed53331d13d9b16412fb330fc8a66fd4c517ba (diff) | |
download | trashman-3adfe99b1633e9f3f9e8a8827ab75d72f84d3a92.tar.gz trashman-3adfe99b1633e9f3f9e8a8827ab75d72f84d3a92.tar.bz2 |
Fix: XBPS
Diffstat (limited to 'share/hoarder/xbps/unix')
-rwxr-xr-x | share/hoarder/xbps/unix/install | 18 |
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 |