Switch to new download format, fix dependencies and disable mt
This commit is contained in:
@@ -2,22 +2,17 @@
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
DOWNLOAD="https://ftpmirror.gnu.org/gnu/cpio/cpio-${BPM_PKG_VERSION}.tar.bz2"
|
||||
FILENAME="${DOWNLOAD##*/}"
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
# This function is used for downloading files and putting them into the correct location
|
||||
# This function is used for putting downloaded files to the correct location or applying patches
|
||||
prepare() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
cd "$BPM_SOURCE"
|
||||
patch -Np1 -i "$BPM_WORKDIR"/cpio-c23-comformity.patch
|
||||
}
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
./configure --prefix=/usr \
|
||||
--enable-mt \
|
||||
--with-rmt=/usr/libexec/rmt
|
||||
./configure --prefix=/usr --with-rmt=/dev/null
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user