archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libteam / trunk / PKGBUILD
blobb316f3a635e8f91705da859042316a7e25934212
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgbase=libteam
4 pkgname=(libteam libteam-docs)
5 pkgver=1.31
6 pkgrel=8
7 pkgdesc="Library for controlling team network device"
8 url="http://libteam.org/"
9 arch=(x86_64)
10 license=(LGPL)
11 depends=(
12   bash
13   jansson
14   libdaemon
15   libdbus
16   libnl
17   zeromq
19 makedepends=(
20   doxygen
21   git
22   graphviz
24 _commit=3ee12c6d569977cf1cd30d0da77807a07aa77158  # tags/v1.31
25 source=("git+https://github.com/jpirko/libteam#commit=$_commit")
26 b2sums=('SKIP')
28 pkgver() {
29   cd libteam
30   git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
33 prepare() {
34   cd libteam
36   # https://bugs.archlinux.org/task/68486
37   git cherry-pick -n 61efd6de2fbb8ee077863ee5a355ac3dfd9365b9
39   NOCONFIGURE=1 ./autogen.sh
42 build() {
43   cd libteam
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
47   make all html
50 check() {
51   cd libteam
52   make check
55 package_libteam() {
56   provides=(libteam.so libteamdctl.so)
58   cd libteam
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)"
67   depends=()
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: