aboutsummaryrefslogtreecommitdiffstats
path: root/community/libteam
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-07-25 15:16:05 +0300
committerprspkt <prspkt@protonmail.com>2019-07-25 15:22:15 +0300
commitd02535590ed5cadeee3bf742b48999d768b3f6ab (patch)
tree24f537b52c42681d00627d686c5cda2fb73ebc36 /community/libteam
parent56bff6577e7806c4b8b0aa02904748546df09b06 (diff)
downloadaports-d02535590ed5cadeee3bf742b48999d768b3f6ab.tar.bz2
aports-d02535590ed5cadeee3bf742b48999d768b3f6ab.tar.xz
community/libteam: clarify license, modernize
Signed-off-by: prspkt <prspkt@protonmail.com>
Diffstat (limited to 'community/libteam')
-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