]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: XBPS (3)
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 16 Aug 2020 01:47:14 +0000 (22:47 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 16 Aug 2020 01:47:14 +0000 (22:47 -0300)
share/hoarder/xbps/unix/install [deleted file]
share/hoarder/xbps/unix/linux/debian/install [new file with mode: 0755]

diff --git a/share/hoarder/xbps/unix/install b/share/hoarder/xbps/unix/install
deleted file mode 100755 (executable)
index 854dbff..0000000
+++ /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 (executable)
index 0000000..daefbb2
--- /dev/null
@@ -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