diff options
author | brainpower | 2015-01-12 22:55:28 +0100 |
---|---|---|
committer | brainpower | 2015-01-12 22:55:28 +0100 |
commit | ea0be26a816bab4409afc924feb523f031a68d67 (patch) | |
tree | 892ad574340f0e87504b45827ce0a673c984adaf /PKGBUILD | |
download | aur-ea0be26a816bab4409afc924feb523f031a68d67.tar.gz |
add: lib32-networkmanager
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e0779d829fae --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,108 @@ +# oi_wtf <brainpower at gulli dot com> +# Original-Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Original-Maintainer: Jan de Groot <jgc@archlinxu.org> +# Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org> +# Contributor: Tor Krill <tor@krill.nu> +# Contributor: Will Rea <sillywilly@gmail.com> +# Contributor: Valentine Sinitsyn <e_val@inbox.ru> + +pkgbase=lib32-networkmanager +pkgname=(lib32-networkmanager lib32-libnm-glib) +_pkgname=NetworkManager +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Network Management daemon, 32bit libraries" +arch=('i686' 'x86_64') +license=('GPL2' 'LGPL2.1') +url="http://www.gnome.org/projects/NetworkManager/" +makedepends=(intltool dhcpcd dhclient iptables gobject-introspection gtk-doc + lib32-dbus-glib iproute2 lib32-libnl lib32-nss lib32-polkit wpa_supplicant dhcp-client + lib32-libsoup lib32-systemd lib32-libndp lib32-libteam vala networkmanager) +checkdepends=(libx11 python-gobject python-dbus) +source=(http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver:0:3}/$_pkgname-$pkgver.tar.xz + disable_set_hostname.patch) +sha256sums=('3a66afec670c975edd9832e620b725a5f16ed267a1b9e1b2d51ef27250d85947' + '25056837ea92e559f09563ed817e3e0cd9333be861b8914e45f62ceaae2e0460') + +prepare() { + cd NetworkManager-$pkgver + patch -Np1 -i ../disable_set_hostname.patch + NOCONFIGURE=1 ./autogen.sh +} + +build() { + export CC='gcc -m32' + export CXX='g++ -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + export LIBRARY_PATH="/usr/lib32:$LIBRARY_PATH" + + cd $_pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --sbindir=/usr/bin \ + --libdir=/usr/lib32 \ + --libexecdir=/usr/lib/networkmanager \ + --with-crypto=nss \ + --with-dhclient=/usr/bin/dhclient \ + --with-dhcpcd=/usr/bin/dhcpcd \ + --with-dnsmasq=/usr/bin/dnsmasq \ + --with-iptables=/usr/bin/iptables \ + --with-systemdsystemunitdir=/usr/lib/systemd/system \ + --with-udev-dir=/usr/lib/udev \ + --with-resolvconf=/usr/bin/resolvconf \ + --with-pppd=/usr/bin/pppd \ + --with-pppd-plugin-dir=/usr/lib/pppd/$_pppver \ + --with-pppoe=/usr/bin/pppoe \ + --with-kernel-firmware-dir=/usr/lib/firmware \ + --with-nmtui=no \ + --with-session-tracking=systemd \ + --without-modem-manager-1 \ + --disable-static \ + --enable-more-warnings=no \ + --disable-wimax \ + --enable-modify-system \ + --disable-doc \ + --disable-qt # disable qt examples, lib32-qt4 contains wrong include dirs in pkgconfig + + make +} + +check() { + cd NetworkManager-$pkgver + #make -k check +} + +package_lib32-networkmanager() { + depends=(lib32-libnm-glib iproute2 lib32-libnl lib32-polkit wpa_supplicant dhcp-client + lib32-libsoup lib32-libndp lib32-libteam networkmanager) + + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" -C libnm uninstall + make DESTDIR="$pkgdir" -C libnm-glib uninstall + make DESTDIR="$pkgdir" -C libnm-util uninstall + make DESTDIR="$pkgdir" -C vapi uninstall + + # Some stuff to move is left over + mv "$pkgdir/usr/lib32/pkgconfig" .. + + rm -rf "$pkgdir"/usr/{bin,lib,include,share} "$pkgdir/etc" "$pkgdir/var" +} + +package_lib32-libnm-glib() { + pkgdesc="NetworkManager library" + depends=(lib32-systemd lib32-nss lib32-dbus-glib) + + install -d "$pkgdir/usr/lib32" + mv pkgconfig "$pkgdir/usr/lib32" + + cd NetworkManager-$pkgver + make DESTDIR="$pkgdir" -C libnm install + make DESTDIR="$pkgdir" -C libnm-util install + make DESTDIR="$pkgdir" -C libnm-glib install + make DESTDIR="$pkgdir" -C vapi install + + rm -rf "$pkgdir"/usr/{bin,lib,include,share} "$pkgdir/etc" +} |