Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

connman-git (/usr/bin move prep)

By: a guest on May 31st, 2013  |  syntax: None  |  size: 1.13 KB  |  views: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: tailinchu <use_my_id at gmail dot com>
  2.  
  3. pkgname=connman-git
  4. pkgver=1.15.17.g0515b22
  5. pkgrel=1
  6. pkgdesc="Wireless LAN network manager (git version)"
  7. arch=('i686' 'x86_64')
  8. url="http://connman.net/"
  9. license=('GPL2')
  10. depends=('dbus-core' 'iptables' 'glib2' 'wpa_supplicant')
  11. makedepends=('git')
  12. conflicts=('connman')
  13. provides=('connman')
  14. source=("git://git.kernel.org/pub/scm/network/connman/connman.git")
  15. md5sums=('SKIP')
  16.  
  17. _gitroot="connman"
  18.  
  19. pkgver () {
  20.     cd "$srcdir/$_gitroot"
  21.     git describe --always | sed 's|-|.|g'
  22. }
  23.  
  24. build() {
  25.     cd "$srcdir/$_gitroot"
  26.     ./bootstrap
  27.     ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
  28.         --bindir=/usr/bin \
  29.         --sbindir=/usr/bin \
  30.         --with-systemdunitdir=/usr/lib/systemd/system \
  31.         --enable-threads \
  32.         --enable-polkit \
  33.         --enable-client
  34.     make
  35. }
  36.  
  37. package() {
  38.     cd "$srcdir/$_gitroot"
  39.     make PREFIX=/usr DESTDIR="$pkgdir" install
  40.     install -Dm755 "$srcdir/$_gitroot/client/connmanctl" "$pkgdir/usr/bin/connmanctl"
  41.     find "$pkgdir/usr" -name \*.service -exec sed -i 's/s\(bin\)/\1/' {} +
  42. }