archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libteam / repos / extra-x86_64 / PKGBUILD
blob7142258054b1caf1a2bf4f4e9710d4dec5d8a0e1
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=libteam
4 pkgver=1.31
5 pkgrel=5
6 pkgdesc="Library for controlling team network device"
7 arch=(x86_64)
8 url="http://libteam.org/"
9 license=(LGPL)
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")
14 sha256sums=('SKIP')
16 pkgver() {
17   cd $pkgname
18   git describe --tags | sed 's/^v//;s/-/+/g'
21 prepare() {
22   cd $pkgname
24   # https://bugs.archlinux.org/task/68486
25   git cherry-pick -n 61efd6de2fbb8ee077863ee5a355ac3dfd9365b9
27   NOCONFIGURE=1 ./autogen.sh
30 build() {
31   cd $pkgname
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
35   make all html
37   cd binding/python
38   python setup.py build
41 check() {
42   cd $pkgname
43   make check
46 package() {
47   cd $pkgname
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"
56   cd binding/python
57   python setup.py install --root="$pkgdir" --optimize=1 --skip-build