diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-08-15 22:47:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-08-15 22:47:14 -0300 |
commit | 93d47848460160a4c9e828de5bbf349fe4831221 (patch) | |
tree | e16f35e7d929d1d8037f1f0d072cf37ce1bbce35 /share/hoarder/xbps/unix/linux | |
parent | 1554536307caa603c4ee64c26f0a91419c3a8455 (diff) | |
download | trashman-93d47848460160a4c9e828de5bbf349fe4831221.tar.gz trashman-93d47848460160a4c9e828de5bbf349fe4831221.tar.bz2 |
Fix: XBPS (3)
Diffstat (limited to 'share/hoarder/xbps/unix/linux')
-rwxr-xr-x | share/hoarder/xbps/unix/linux/debian/install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/share/hoarder/xbps/unix/linux/debian/install b/share/hoarder/xbps/unix/linux/debian/install new file mode 100755 index 0000000..daefbb2 --- /dev/null +++ b/share/hoarder/xbps/unix/linux/debian/install @@ -0,0 +1,29 @@ +#!/usr/bin/env sh +# +# Install XBPS package manager. +# +# Parameters +SHARE="$1" +LIB="$2" +DESTDIR="$HOME/.xbps" + +# Include basic functions +. $LIB/trashman/functions || exit 1 +. $LIB/trashman/debian || exit 1 + +# Requirements +trashman_apt_install make gcc zlib1g-dev pkgconfig libarchive-dev graphviz doxygen +#trashman_apt_install atf-sh + +# Source folder +mkdir -p $HOME/.local/src + +# Build and install +git clone https://github.com/void-linux/xbps $HOME/.local/src/xbps || 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 |