diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-08-15 22:29:43 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-08-15 22:29:43 -0300 |
commit | a9ed53331d13d9b16412fb330fc8a66fd4c517ba (patch) | |
tree | 59755bb17739c5729c6a44cc836d337ca096e8ed /share/hoarder | |
parent | 0ccaea92faf3911d054fd7d120d04a4ff0d68a0d (diff) | |
download | trashman-a9ed53331d13d9b16412fb330fc8a66fd4c517ba.tar.gz trashman-a9ed53331d13d9b16412fb330fc8a66fd4c517ba.tar.bz2 |
Feat: Nix and XBPS package managers
Diffstat (limited to 'share/hoarder')
-rw-r--r-- | share/hoarder/xbps/info | 1 | ||||
-rwxr-xr-x | share/hoarder/xbps/unix/install | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/share/hoarder/xbps/info b/share/hoarder/xbps/info new file mode 100644 index 0000000..50a56ed --- /dev/null +++ b/share/hoarder/xbps/info @@ -0,0 +1 @@ +X Binary Package System designed and implemented from scratch diff --git a/share/hoarder/xbps/unix/install b/share/hoarder/xbps/unix/install new file mode 100755 index 0000000..5a16ac9 --- /dev/null +++ b/share/hoarder/xbps/unix/install @@ -0,0 +1,32 @@ +#!/usr/bin/env sh +# +# Install XBPS package manager. +# + +# Parameters +SHARE="$1" +BASE="$SHARE/../.." +FOLDER="/usr/local" +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" + exit 1 +fi + +# Source folder +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 + +# Remove source +#rm -rf $HOME/.local/src/xbps |