diff options
Diffstat (limited to 'extra/libmbim')
-rw-r--r-- | extra/libmbim/PKGBUILD | 38 | ||||
-rw-r--r-- | extra/libmbim/format.patch | 14 |
2 files changed, 52 insertions, 0 deletions
diff --git a/extra/libmbim/PKGBUILD b/extra/libmbim/PKGBUILD new file mode 100644 index 000000000..901429d4c --- /dev/null +++ b/extra/libmbim/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 186608 2013-05-30 04:01:37Z heftig $ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> + +pkgname=libmbim +pkgver=1.0.0 +pkgrel=1 +pkgdesc="MBIM modem protocol helper library" +arch=(i686 x86_64) +url="http://cgit.freedesktop.org/libmbim/libmbim" +license=(GPL2) +depends=(glib2 bash systemd) +makedepends=(gtk-doc python) +options=('!libtool') +source=($url/snapshot/$pkgname-$pkgver.tar.xz format.patch) +sha256sums=('c3d668a5dc51700749a62fb5d50f149900e8dd4265e4d132c1d9cc4cb77eef0c' + 'fbf54d12660c132f756c59cebd448a38750e3bbc9de8a7a97ceda466440dcb41') + +prepare() { + cd $pkgname-$pkgver + patch -Np1 -i ../format.patch +} + +build() { + cd $pkgname-$pkgver + ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static --with-tests + make +} + +check() { + cd $pkgname-$pkgver + make check +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/extra/libmbim/format.patch b/extra/libmbim/format.patch new file mode 100644 index 000000000..4bd4c0eea --- /dev/null +++ b/extra/libmbim/format.patch @@ -0,0 +1,14 @@ +diff -u -r libmbim-1.0.0/cli/mbimcli-basic-connect.c libmbim-1.0.0-format/cli/mbimcli-basic-connect.c +--- libmbim-1.0.0/cli/mbimcli-basic-connect.c 2013-05-22 16:20:29.000000000 +0200 ++++ libmbim-1.0.0-format/cli/mbimcli-basic-connect.c 2013-05-30 05:53:49.269777442 +0200 +@@ -909,8 +909,8 @@ + "\t Network error: '%s'\n" + "\t Packet service state: '%s'\n" + "\tAvailable data classes: '%s'\n" +- "\t Uplink speed: '%lu bps'\n" +- "\t Downlink speed: '%lu bps'\n", ++ "\t Uplink speed: '%" G_GUINT64_FORMAT " bps'\n" ++ "\t Downlink speed: '%" G_GUINT64_FORMAT " bps'\n", + mbim_device_get_path_display (device), + VALIDATE_UNKNOWN (mbim_nw_error_get_string (nw_error)), + VALIDATE_UNKNOWN (mbim_packet_service_state_get_string (packet_service_state)), |