# Maintainer: Sameer Puri pkgname=python-or-tools pkgver=8.0 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' 'python-wheel' 'python-pip' 'git') options=(!emptydirs) source=("https://github.com/google/or-tools/archive/v${pkgver}.tar.gz") sha384sums=('b3b900d58106b7fa4a37f541454e7c001f97b537a789ea40a723ae0739c37a0efba7f89cea9a553945a561165f371df6') build() { cd "${srcdir}/or-tools-${pkgver}" make third_party pacman -Qi cplex &> /dev/null && echo 'UNIX_CPLEX_DIR = /usr/lib' >> Makefile.local 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')" }