# Maintainer: Dario Ostuni pkgname=python-or-tools pkgver=7.5 pkgrel=1 pkgdesc="Google's Operations Research tools" arch=('x86_64' 'i686' 'aarch64' 'armv7h') url="https://github.com/google/or-tools" license=('Apache2') depends=('python>=3.5' 'swig' 'python-protobuf') makedepends=('cmake' 'wget' 'lsb-release' 'automake') options=(!emptydirs) source=("https://github.com/google/or-tools/archive/v${pkgver}.tar.gz") sha384sums=('2e27e4a73e41fc57ec57c1974221607f0e56014247dcf7a61abbbd35b4c397b1a9266bc06e79e2e2a5922c126568ec78') build() { cd "${srcdir}/or-tools-${pkgver}" make third_party make python make pypi_archive } package() { cd "${srcdir}/or-tools-${pkgver}" /usr/bin/pip --quiet install --root="$pkgdir" \ --no-deps --ignore-installed --no-warn-script-location \ "$(find -name 'ortools*whl')" }