aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/libteam/APKBUILD24
1 files changed, 13 insertions, 11 deletions
diff --git a/community/libteam/APKBUILD b/community/libteam/APKBUILD
index e682864d9e..0ce69a0eea 100644
--- a/community/libteam/APKBUILD
+++ b/community/libteam/APKBUILD
@@ -6,40 +6,42 @@ pkgrel=1
pkgdesc="Library for controlling team network device"
url="http://libteam.org"
arch="all"
-license="LGPL-2.1"
+license="LGPL-2.1-or-later"
makedepends="autoconf automake libtool libnl3-dev libdaemon-dev jansson-dev
dbus-dev linux-headers bsd-compat-headers doxygen swig python3-dev"
subpackages="$pkgname-dev $pkgname-doc py3-$pkgname:_py3"
-source="$pkgname-$pkgver.tar.gz::https://github.com/jpirko/$pkgname/archive/v$pkgver.tar.gz
+source="$pkgname-$pkgver.tar.gz::https://github.com/jpirko/libteam/archive/v$pkgver.tar.gz
fix-fd_set.patch
memcpy-memset-implicit-declaration.patch
fix-redefinition-struct-ethhdr.patch
"
-builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ autoreconf -vfi
+}
build() {
- cd "$builddir"
- ./autogen.sh
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
+ --sysconfdir=/etc \
--mandir=/usr/share/man \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
_py3() {
pkgdesc="Python Bindings for libteam"
cd "$builddir"/binding/python
- python3 setup.py build || return 1
- python3 setup.py install --root "$subpkgdir" -O1 || return 1
+ python3 setup.py build
+ python3 setup.py install --root "$subpkgdir" -O1
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
sha512sums="b2aad2c8ad76d0694af7cf445e703a0141bd3c8100e0460494647fce8ac9705539aa1a1ccf0ae3bcfd5c892814eb1b15debeff951e371657110222ef1051d5f0 libteam-1.28.tar.gz