[arch-commits] Commit in modemmanager/repos (4 files)

Jan Steffens heftig at archlinux.org
Thu Mar 30 20:38:13 UTC 2017


    Date: Thursday, March 30, 2017 @ 20:38:12
  Author: heftig
Revision: 291899

archrelease: copy trunk to gnome-unstable-i686, gnome-unstable-x86_64

Added:
  modemmanager/repos/gnome-unstable-i686/
  modemmanager/repos/gnome-unstable-i686/PKGBUILD
    (from rev 291898, modemmanager/trunk/PKGBUILD)
  modemmanager/repos/gnome-unstable-x86_64/
  modemmanager/repos/gnome-unstable-x86_64/PKGBUILD
    (from rev 291898, modemmanager/trunk/PKGBUILD)

--------------------------------+
 gnome-unstable-i686/PKGBUILD   |   79 +++++++++++++++++++++++++++++++++++++++
 gnome-unstable-x86_64/PKGBUILD |   79 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 158 insertions(+)

Copied: modemmanager/repos/gnome-unstable-i686/PKGBUILD (from rev 291898, modemmanager/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-i686/PKGBUILD	                        (rev 0)
+++ gnome-unstable-i686/PKGBUILD	2017-03-30 20:38:12 UTC (rev 291899)
@@ -0,0 +1,79 @@
+# $Id$
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgbase=modemmanager
+pkgname=(modemmanager libmm-glib)
+pkgver=1.6.4
+pkgrel=2
+pkgdesc="Mobile broadband modem management service"
+arch=(i686 x86_64)
+url="https://www.freedesktop.org/wiki/Software/ModemManager/"
+license=(GPL2 LGPL2.1)
+depends=(systemd libgudev polkit ppp libqmi libmbim)
+makedepends=(intltool gtk-doc gobject-introspection vala autoconf-archive git)
+_commit=ed41d18ab6b0db386b30ed8ef712ab51a865c7cf  # tags/1.6.4
+source=("git+https://anongit.freedesktop.org/git/ModemManager/ModemManager#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd ModemManager
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd ModemManager
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd ModemManager
+  ./configure --prefix=/usr \
+        --sysconfdir=/etc \
+        --localstatedir=/var \
+        --sbindir=/usr/bin \
+        --with-dbus-sys-dir=/usr/share/dbus-1/system.d \
+        --with-udev-base-dir=/usr/lib/udev \
+        --with-polkit=permissive \
+        --with-suspend-resume=systemd \
+        --enable-gtk-doc \
+        --disable-static
+
+  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+check() {
+  cd ModemManager
+  make -k check
+}
+
+package_modemmanager() {
+  depends+=(libmm-glib)
+  optdepends=('usb_modeswitch: install if your modem shows up as a storage drive')
+  options=(!emptydirs)
+
+  cd ModemManager
+  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" -C libmm-glib uninstall
+  make DESTDIR="$pkgdir" -C vapi uninstall
+
+  # Some stuff to move is left over
+  mv "$pkgdir/usr/include" ..
+  mv "$pkgdir/usr/lib/pkgconfig" ..
+}
+
+package_libmm-glib() {
+  pkgdesc="ModemManager library"
+  depends=(glib2)
+
+  install -d "$pkgdir/usr/lib"
+  mv include "$pkgdir/usr"
+  mv pkgconfig "$pkgdir/usr/lib"
+
+  cd ModemManager
+  make DESTDIR="$pkgdir" -C libmm-glib install
+  make DESTDIR="$pkgdir" -C vapi install
+}

Copied: modemmanager/repos/gnome-unstable-x86_64/PKGBUILD (from rev 291898, modemmanager/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD	2017-03-30 20:38:12 UTC (rev 291899)
@@ -0,0 +1,79 @@
+# $Id$
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgbase=modemmanager
+pkgname=(modemmanager libmm-glib)
+pkgver=1.6.4
+pkgrel=2
+pkgdesc="Mobile broadband modem management service"
+arch=(i686 x86_64)
+url="https://www.freedesktop.org/wiki/Software/ModemManager/"
+license=(GPL2 LGPL2.1)
+depends=(systemd libgudev polkit ppp libqmi libmbim)
+makedepends=(intltool gtk-doc gobject-introspection vala autoconf-archive git)
+_commit=ed41d18ab6b0db386b30ed8ef712ab51a865c7cf  # tags/1.6.4
+source=("git+https://anongit.freedesktop.org/git/ModemManager/ModemManager#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd ModemManager
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd ModemManager
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd ModemManager
+  ./configure --prefix=/usr \
+        --sysconfdir=/etc \
+        --localstatedir=/var \
+        --sbindir=/usr/bin \
+        --with-dbus-sys-dir=/usr/share/dbus-1/system.d \
+        --with-udev-base-dir=/usr/lib/udev \
+        --with-polkit=permissive \
+        --with-suspend-resume=systemd \
+        --enable-gtk-doc \
+        --disable-static
+
+  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+check() {
+  cd ModemManager
+  make -k check
+}
+
+package_modemmanager() {
+  depends+=(libmm-glib)
+  optdepends=('usb_modeswitch: install if your modem shows up as a storage drive')
+  options=(!emptydirs)
+
+  cd ModemManager
+  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" -C libmm-glib uninstall
+  make DESTDIR="$pkgdir" -C vapi uninstall
+
+  # Some stuff to move is left over
+  mv "$pkgdir/usr/include" ..
+  mv "$pkgdir/usr/lib/pkgconfig" ..
+}
+
+package_libmm-glib() {
+  pkgdesc="ModemManager library"
+  depends=(glib2)
+
+  install -d "$pkgdir/usr/lib"
+  mv include "$pkgdir/usr"
+  mv pkgconfig "$pkgdir/usr/lib"
+
+  cd ModemManager
+  make DESTDIR="$pkgdir" -C libmm-glib install
+  make DESTDIR="$pkgdir" -C vapi install
+}


More information about the arch-commits mailing list