1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgname=(libteam libteam-docs)
7 pkgdesc="Library for controlling team network device"
8 url="http://libteam.org/"
24 _commit=3ee12c6d569977cf1cd30d0da77807a07aa77158 # tags/v1.31
25 source=("git+https://github.com/jpirko/libteam#commit=$_commit")
30 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
36 # https://bugs.archlinux.org/task/68486
37 git cherry-pick -n 61efd6de2fbb8ee077863ee5a355ac3dfd9365b9
39 NOCONFIGURE=1 ./autogen.sh
44 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
45 --disable-static --libexecdir=/usr/lib
46 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
56 provides=(libteam.so libteamdctl.so)
59 make DESTDIR="$pkgdir" install
61 install -Dt "$pkgdir/usr/lib/systemd/system" -m644 teamd/redhat/systemd/teamd@.service
62 install -Dt "$pkgdir/usr/share/dbus-1/system.d" -m644 teamd/dbus/teamd.conf
65 package_libteam-docs() {
66 pkgdesc+=" (documentation)"
69 mkdir -p "$pkgdir/usr/share/doc/$pkgbase"
70 cp -a libteam/doc/api "$pkgdir/usr/share/doc/$pkgbase"
73 # vim:set sw=2 sts=-1 et: