From 75d570f516f10e42e17b543d612d94ac9a36bdc4 Mon Sep 17 00:00:00 2001 From: Stuart Cardall Date: Tue, 6 Jun 2017 23:30:05 +0000 Subject: community/modemmanager: update to 1.6.6 / remove libmm-glib-dev * libmm-glib-dev files moved into modemmanager-dev --- community/modemmanager/APKBUILD | 52 ++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 29 deletions(-) (limited to 'community') diff --git a/community/modemmanager/APKBUILD b/community/modemmanager/APKBUILD index 086ff8d740..71a5e4899c 100644 --- a/community/modemmanager/APKBUILD +++ b/community/modemmanager/APKBUILD @@ -1,15 +1,17 @@ # Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=modemmanager -pkgver=1.6.4 -pkgrel=3 +pkgver=1.6.6 +pkgrel=0 pkgdesc="ModemManager library" url="http://www.freedesktop.org/wiki/Software/ModemManager" arch="all" license="GPL2, LGPL2.1" makedepends="$depends_dev gobject-introspection-dev gtk-doc intltool vala libgudev-dev polkit-dev libmbim-dev libqmi-dev linux-headers" -subpackages="$pkgname-lang $pkgname-doc libmm-glib:libmm libmm-glib-dev:libmmdev $pkgname-dev" +checkdepends="glib-dev" +options="!check" # https://bugs.freedesktop.org/show_bug.cgi?id=101197 +subpackages="$pkgname-lang $pkgname-doc libmm-glib:libmm $pkgname-dev" source="http://www.freedesktop.org/software/ModemManager/ModemManager-$pkgver.tar.xz $pkgname.rules " @@ -29,43 +31,34 @@ build() { --enable-more-warnings \ --with-newest-qmi-commands \ --with-dbus-sys-dir=/etc/dbus-1 \ - --enable-vala=yes \ - || return 1 + --enable-vala=yes # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool - make || return 1 + make } libmm() { cd "$builddir" mkdir -p "$subpkgdir" - make DESTDIR="$subpkgdir" -C libmm-glib install || return 1 - make DESTDIR="$subpkgdir" -C vapi install || return 1 -} - -libmmdev() { - depends="libmm-glib modemmanager-dev" - - mkdir -p "$subpkgdir/usr/lib/pkgconfig" - mv "${subpkgdir%*-dev}/usr/include" "$subpkgdir/usr/" - mv "${subpkgdir%*-dev}/usr/share" "$subpkgdir/usr/" - mv "${subpkgdir%*-dev}/usr/lib/libmm-glib.so" "$subpkgdir"/usr/lib/ - mv "$pkgdir"/usr/lib/pkgconfig/mm-glib.pc "$subpkgdir"/usr/lib/pkgconfig/ + make DESTDIR="$subpkgdir" -C libmm-glib install + # move dev files to modemmnager-dev + mv -f "$subpkgdir/usr/include/libmm-glib" "$pkgdir/usr/include/" + mv -f "$subpkgdir/usr/share/gir-1.0" "$pkgdir/usr/share/" + rmdir "$subpkgdir/usr/include" "$subpkgdir/usr/share" } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 - make DESTDIR="$pkgdir" -C libmm-glib uninstall || return 1 - make DESTDIR="$pkgdir" -C vapi uninstall || return 1 + make DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" -C libmm-glib uninstall rmdir "$pkgdir"/usr/lib/girepository-1.0 # in libmm-glib rm -rf "$pkgdir"/usr/share/dbus-1/system-services #systemd-service mkdir -p "$pkgdir/usr/share/polkit-1/rules.d" install -m644 -D "$srcdir/$pkgname.rules" \ - "$pkgdir/usr/share/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules" || return 1 + "$pkgdir/usr/share/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules" # post-install message - mkdir -p "$pkgdir/usr/share/doc/$pkgname" - cat > $pkgdir/usr/share/doc/$pkgname/README.alpine < $pkgdir/usr/share/doc/$pkgname/README.alpine <