blob: 797beae05ad45c352f78052ad73150cc01f42645 (
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
31
|
#!/bin/bash
#
# xbps basic functions.
#
xbps_debian_requirements() {
# Requirements
trashman_apt_install make gcc zlib1g-dev pkg-config libarchive-dev graphviz doxygen libssl-dev
#trashman_apt_install atf-sh
}
xbps_install() {
# Source folder
mkdir -p $SRC
# Download
if [ -d "$SRC/xbps" ]; then
cd $SRC/xbps && git pull
else
git clone https://github.com/void-linux/xbps $SRC/xbps || exit 1
fi
# Build and install
cd $SRC/xbps || exit 1
./configure $FLAGS --prefix=$PREFIX --sysconfdir=$PREFIX/etc || exit 1
make -j$(nproc) || exit 1
make DESTDIR=$DESTDIR install clean || exit 1
# Remove source
#rm -rf $HOME/.local/src/xbps
}
|