From 0cd7c407097fbbe4cbe78a3fbb0f3d8ffdee2350 Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 25 Aug 2024 07:02:18 +0300 Subject: [PATCH] fix: modemmanager mp-check unknown directory errors --- src/modemmanager/pkg.sh | 28 +++++++++++++++++++++------- src/nodejs/changes.md | 3 +++ src/nodejs/pkg.sh | 3 ++- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/modemmanager/pkg.sh b/src/modemmanager/pkg.sh index 1983382..f656cc2 100644 --- a/src/modemmanager/pkg.sh +++ b/src/modemmanager/pkg.sh @@ -1,13 +1,22 @@ NAME="modemmanager" DESC="Unified high level API for communicating with mobile broadband modems, regardless of the protocol used to communicate with the actual device" VERSION="1.18.12" -FILES=("https://www.freedesktop.org/software/ModemManager/ModemManager-$VERSION.tar.xz") + +FILES=("https://www.freedesktop.org/software/ModemManager/ModemManager-${VERSION}.tar.xz") HASHES=("9f014dfc59f1bd8bc230bb2c2974d104") -DEPENDS=("libgudev" "gobject-introspection" "libmbim" "libqmi") + +DEPENDS=( + "glib" "libgudev" "libmbim" + "libqmi" "polkit" "systemd" +) +BUILD=( + "gtk-doc" "meson" "vala" + "gobject-introspection" +) PACKAGE() { - tar xf ModemManager-$VERSION.tar.xz - cd ModemManager-$VERSION + tar xf "ModemManager-${VERSION}.tar.xz" + cd "ModemManager-${VERSION}" ./configure --prefix=/usr \ --sysconfdir=/etc \ @@ -15,8 +24,13 @@ PACKAGE() { --disable-static \ --disable-maintainer-mode \ --with-systemd-journal \ - --with-systemd-suspend-resume - make && make DESTDIR="$ROOTDIR" install + --with-systemd-suspend-resum + make + make DESTDIR="${ROOTDIR}" install - cd .. && rm -r ModemManager-$VERSION + # remove the /lib directory + mv "${ROOTDIR}/lib/udev" "${ROOTDIR}/usr/lib" + rm -r "${ROOTDIR}/lib" + + cd .. && rm -r "ModemManager-${VERSION}" } diff --git a/src/nodejs/changes.md b/src/nodejs/changes.md index e8d40ee..e37a1bc 100644 --- a/src/nodejs/changes.md +++ b/src/nodejs/changes.md @@ -1,2 +1,5 @@ +# 20.11.1 +Updated to a newer upstream release + # 18.17.1 First version diff --git a/src/nodejs/pkg.sh b/src/nodejs/pkg.sh index bb5ceee..6dbf566 100644 --- a/src/nodejs/pkg.sh +++ b/src/nodejs/pkg.sh @@ -23,7 +23,8 @@ PACKAGE() { --shared-nghttp2 \ --shared-zlib \ --with-intl=system-icu - make && make DESTDIR="${ROOTDIR}" install + make + make DESTDIR="${ROOTDIR}" install ln -sf node "${ROOTDIR}/usr/share/doc/node-${VERSION}" cd .. && rm -r "node-v${VERSION}"