diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-29 12:35:20 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-29 12:35:20 +0200 |
commit | efa951e23fc789d7a44aeb0d194fd1bf83ded10d (patch) | |
tree | f8ac7c7f3622fab9744684527a46942e2a01cdb0 /community/libteam/APKBUILD | |
parent | 4077e06e6e7b3e4bf430f75e5883eb2c8cb1a95d (diff) | |
download | aports-efa951e23fc789d7a44aeb0d194fd1bf83ded10d.tar.bz2 aports-efa951e23fc789d7a44aeb0d194fd1bf83ded10d.tar.xz |
community/libteam: clean abuild
py() is completely wrong, but I'll fix it later.
Diffstat (limited to 'community/libteam/APKBUILD')
-rw-r--r-- | community/libteam/APKBUILD | 60 |
1 files changed, 28 insertions, 32 deletions
diff --git a/community/libteam/APKBUILD b/community/libteam/APKBUILD index d54e108e51..9bdfcd5d45 100644 --- a/community/libteam/APKBUILD +++ b/community/libteam/APKBUILD @@ -2,61 +2,57 @@ # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> pkgname=libteam pkgver=1.26 -pkgrel=2 +pkgrel=3 pkgdesc="Library for controlling team network device" url="http://libteam.org" arch="all" license="LGPL2.1" -depends_dev="" -makedepends="$depends_dev autoconf automake libtool libnl3-dev libdaemon-dev jansson-dev dbus-dev - linux-headers bsd-compat-headers doxygen swig python2-dev python3-dev" +makedepends="autoconf automake libtool libnl3-dev libdaemon-dev jansson-dev + dbus-dev linux-headers bsd-compat-headers doxygen swig + python2-dev python3-dev" subpackages="$pkgname-dev $pkgname-doc py-$pkgname:py" source="$pkgname-$pkgver.tar.gz::https://github.com/jpirko/$pkgname/archive/v$pkgver.tar.gz fix-fd_set.patch memcpy-memset-implicit-declaration.patch fix-redefinition-struct-ethhdr.patch " - -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./autogen.sh ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --mandir=/usr/share/man \ - || return 1 - make || return 1 + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 + make || return 1 } py() { pkgdesc="Python 2/3 Bindings for libteam" + + cd "$builddir" + mkdir -p "$subpkgdir" - cd "$_builddir" - cp -ar binding/python binding/python3 || return 1 - cd binding/python - python2 ./setup.py build || return 1 - cd ../python3 - python3 ./setup.py build || return 1 + cp -ar binding/python binding/python3 || return 1 + + cd binding/python + python2 ./setup.py build || return 1 + + cd ../python3 + python3 ./setup.py build || return 1 + cd ../python - python2 ./setup.py install --root "$subpkgdir" -O1 || return 1 - cd ../python3 - python3 ./setup.py install --root "$subpkgdir" -O1 || return 1 + python2 ./setup.py install --root "$subpkgdir" -O1 || return 1 + + cd ../python3 + python3 ./setup.py install --root "$subpkgdir" -O1 || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } |