aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder
diff options
context:
space:
mode:
Diffstat (limited to 'share/hoarder')
-rwxr-xr-xshare/hoarder/xbps/unix/install30
-rwxr-xr-xshare/hoarder/xbps/unix/linux/debian/install29
2 files changed, 29 insertions, 30 deletions
diff --git a/share/hoarder/xbps/unix/install b/share/hoarder/xbps/unix/install
deleted file mode 100755
index 854dbff..0000000
--- a/share/hoarder/xbps/unix/install
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env sh
-#
-# Install XBPS package manager.
-#
-# Parameters
-SHARE="$1"
-LIB="$2"
-DESTDIR="$HOME/.xbps"
-
-# Include basic functions
-. $LIB/trashman/functions || exit 1
-
-# Check for curl
-if ! which make > /dev/null 2>&1; then
- trashman_echo "Needs make 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 || 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
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