aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder/xbps/unix/linux
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-08-15 22:47:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-08-15 22:47:14 -0300
commit93d47848460160a4c9e828de5bbf349fe4831221 (patch)
treee16f35e7d929d1d8037f1f0d072cf37ce1bbce35 /share/hoarder/xbps/unix/linux
parent1554536307caa603c4ee64c26f0a91419c3a8455 (diff)
downloadtrashman-93d47848460160a4c9e828de5bbf349fe4831221.tar.gz
trashman-93d47848460160a4c9e828de5bbf349fe4831221.tar.bz2
Fix: XBPS (3)
Diffstat (limited to 'share/hoarder/xbps/unix/linux')
-rwxr-xr-xshare/hoarder/xbps/unix/linux/debian/install29
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