Update dependencies and switch to meson for compilation
This commit is contained in:
@@ -1,22 +1,32 @@
|
|||||||
name: util-linux
|
name: util-linux
|
||||||
description: Linux system utilities
|
description: Linux system utilities
|
||||||
version: 2.41.3
|
version: 2.41.3
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://github.com/util-linux/util-linux
|
url: https://github.com/util-linux/util-linux
|
||||||
license: GPL2
|
license: GPL2
|
||||||
architecture: any
|
architecture: any
|
||||||
type: source
|
type: source
|
||||||
depends:
|
depends:
|
||||||
|
- coreutils
|
||||||
|
- file
|
||||||
- glibc
|
- glibc
|
||||||
- libcap
|
- libcap
|
||||||
|
- libudev
|
||||||
|
- libutempter
|
||||||
|
- libxcrypt
|
||||||
- ncurses
|
- ncurses
|
||||||
- pam
|
- pam
|
||||||
|
- readline
|
||||||
- shadow
|
- shadow
|
||||||
- udev
|
|
||||||
- zlib
|
- zlib
|
||||||
make_depends:
|
make_depends:
|
||||||
- libxcrypt
|
- asciidoctor
|
||||||
- readline
|
- bash-completion
|
||||||
|
- cryptsetup
|
||||||
|
- meson
|
||||||
|
- python3
|
||||||
|
- sqlite
|
||||||
|
- udev
|
||||||
downloads:
|
downloads:
|
||||||
- url: https://github.com/util-linux/util-linux/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
- url: https://github.com/util-linux/util-linux/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
|
|||||||
@@ -2,42 +2,30 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# 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
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
|
||||||
# This function is used for putting downloaded files to the correct location or applying patches
|
|
||||||
prepare() {
|
|
||||||
cd "$BPM_SOURCE"
|
|
||||||
./autogen.sh
|
|
||||||
}
|
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
./configure --bindir=/usr/bin \
|
meson setup --prefix=/usr \
|
||||||
--libdir=/usr/lib \
|
-Dfs-search-path=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin \
|
||||||
--runstatedir=/run \
|
-Dsystemd=disabled \
|
||||||
--sbindir=/usr/sbin \
|
-Dlibuser=disabled \
|
||||||
--disable-chfn-chsh \
|
-Dlibutempter=enabled \
|
||||||
--disable-login \
|
-Dncurses=disabled \
|
||||||
--disable-nologin \
|
-Dncursesw=enabled \
|
||||||
--disable-su \
|
-Deconf=disabled \
|
||||||
--disable-setpriv \
|
-Dbuild-chfn-chsh=enabled \
|
||||||
--disable-runuser \
|
-Dbuild-line=disabled \
|
||||||
--disable-pylibmount \
|
-Dbuild-mesg=enabled \
|
||||||
--disable-liblastlog2 \
|
-Dbuild-newgrp=enabled \
|
||||||
--disable-static \
|
-Dbuild-vipw=enabled \
|
||||||
--without-python \
|
-Dbuild-write=enabled \
|
||||||
--without-systemd \
|
build
|
||||||
--without-systemdsystemunitdir \
|
meson compile -C build
|
||||||
ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
||||||
--docdir=/usr/share/doc/util-linux
|
|
||||||
make
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
make check-programs
|
|
||||||
|
|
||||||
cd tests
|
cd tests
|
||||||
SHELL=/bin/sh ./run.sh --exclude="kill/decode" # kill/decode test fails with bash 5.3
|
SHELL=/bin/sh ./run.sh --exclude="kill/decode" # kill/decode test fails with bash 5.3
|
||||||
}
|
}
|
||||||
@@ -45,7 +33,9 @@ check() {
|
|||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
|
# Create missing hwclock directory
|
||||||
install -d "$BPM_OUTPUT"/var/lib/hwclock/
|
install -d "$BPM_OUTPUT"/var/lib/hwclock/
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
|
|||||||
Reference in New Issue
Block a user