aboutsummaryrefslogtreecommitdiffstats
path: root/community/modemmanager
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2017-06-06 23:30:05 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-07 07:40:06 +0000
commit75d570f516f10e42e17b543d612d94ac9a36bdc4 (patch)
tree057d7ae55af93b3ea5ab5bef5afa2bc21f186c8f /community/modemmanager
parent5c1e604e2321b7124374961755f176216e25afba (diff)
downloadaports-75d570f516f10e42e17b543d612d94ac9a36bdc4.tar.bz2
aports-75d570f516f10e42e17b543d612d94ac9a36bdc4.tar.xz
community/modemmanager: update to 1.6.6 / remove libmm-glib-dev
* libmm-glib-dev files moved into modemmanager-dev
Diffstat (limited to 'community/modemmanager')
-rw-r--r--community/modemmanager/APKBUILD52
1 files changed, 23 insertions, 29 deletions
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 <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
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 <<EOF
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname"
+ cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <<EOF
If your USB modem shows up as a Flash drive when you plug it in:
install 'usb-modeswitch' to automatically switch to USB modem mode whenever you plug it in.
@@ -73,9 +66,10 @@ To control your modem without the root password: add your user account to the 'p
EOF
}
-md5sums="06488186c7dd53f8104183b86f7a1568 ModemManager-1.6.4.tar.xz
-735e155a785554349906c09dd36d3866 modemmanager.rules"
-sha256sums="cdd5b4cb1e4d7643643a28ccbfc4bb354bfa9cb89a77ea160ebdf7926171c668 ModemManager-1.6.4.tar.xz
-577807e59b1e95757a4d94922c66f7f36487922c5092a6c148e7db6a4dc6afe8 modemmanager.rules"
-sha512sums="6b31ce186adce445cec8964df751b6146a86271e6c14d860740ae66cfe296ac2ac4df21079357775ac5f7a5837c80a7f8db21a2680bc6b45802f9928565f1c73 ModemManager-1.6.4.tar.xz
+check() {
+ cd "$builddir"
+ make check
+}
+
+sha512sums="9df55b38eefbb49ad8e4e24138de68ecfd36349944236cd4f5f84044c4412f31f9e48e422fbf620fa4d5d4e33d6f0476887c19415f07555a6ce120c77decbcc7 ModemManager-1.6.6.tar.xz
3c76ee577334e25c836857f8e7fef6a249cdd9fcd8f889cb64d9c1667bc6a95c087267a153bddd1a13256c59f8cd578ccb448e6b9cb54b73bb74acb8a0ca1e3f modemmanager.rules"