mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
30 lines
953 B
Text
30 lines
953 B
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-batalgorithm
|
|
_pkgorig=BatAlgorithm
|
|
pkgver=0.3.1
|
|
pkgrel=3
|
|
pkgdesc="Implementation of bat-inspired metaheuristic algorithm"
|
|
url="https://github.com/buma/BatAlgorithm"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-numpy"
|
|
makedepends="py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/B/BatAlgorithm/BatAlgorithm-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgorig-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
# no tests provided by the upstream; use smoke tests
|
|
check() {
|
|
PYTHONPATH=build/lib python3 -c "from BatAlgorithm import *"
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
bef691a55df0cfa99d09162c4ef669fe71714bb2d76f4adabad97d95a5222419a14e36b824d1d2be28c31857a2b84c655aa8583afc8d90d23eb3e9e57414baaf py3-batalgorithm-0.3.1.tar.gz
|
|
"
|