1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
6 pkgdesc="Library for controlling team network device"
8 url="http://libteam.org/"
10 depends=(libnl libdaemon jansson libdbus bash zeromq)
11 makedepends=(python swig git doxygen graphviz)
12 _commit=3ee12c6d569977cf1cd30d0da77807a07aa77158 # tags/v1.31
13 source=("git+https://github.com/jpirko/libteam#commit=$_commit")
18 git describe --tags | sed 's/^v//;s/-/+/g'
24 # https://bugs.archlinux.org/task/68486
25 git cherry-pick -n 61efd6de2fbb8ee077863ee5a355ac3dfd9365b9
27 NOCONFIGURE=1 ./autogen.sh
32 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
33 --disable-static --libexecdir=/usr/lib
34 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
48 make DESTDIR="$pkgdir" install
50 install -Dt "$pkgdir/usr/lib/systemd/system" -m644 teamd/redhat/systemd/teamd@.service
51 install -Dt "$pkgdir/usr/share/dbus-1/system.d" -m644 teamd/dbus/teamd.conf
53 mkdir -p "$pkgdir/usr/share/doc/$pkgname"
54 cp -a doc/api "$pkgdir/usr/share/doc/$pkgname"
57 python setup.py install --root="$pkgdir" --optimize=1 --skip-build