aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder/xbps/unix/linux/debian/install
blob: a6fc2562b7feae4eefa342d7a57f3a07fd946f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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 pkg-config 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=$DESTDIR --sysconfdir=$DESTDIR/etc || exit 1
make -j$(nproc)                                                        || exit 1
make DESTDIR=$DESTDIR install clean                                    || exit 1

# Remove source
#rm -rf $HOME/.local/src/xbps