mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 17:01:34 +01: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
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-cro
|
|
_pkgorig=coral-reef-optimization-algorithm
|
|
_commit=25804fc43b735df707821008558e9410dfe4a835
|
|
pkgver=0.0.5.1
|
|
pkgrel=1
|
|
pkgdesc="Implementation of Coral Reef Optimization (CRO) Algorithm"
|
|
url="https://github.com/VictorPelaez/coral-reef-optimization-algorithm"
|
|
arch="noarch !s390x !riscv64" # py3-scikit-learn, py3-matplotlib
|
|
license="MIT"
|
|
depends="python3 py3-matplotlib py3-scipy py3-numpy py3-scikit-learn py3-pandas"
|
|
checkdepends="python3-dev py3-pytest"
|
|
makedepends="py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/VictorPelaez/$_pkgorig/archive/$_commit/$_pkgorig-$_commit.tar.gz"
|
|
builddir="$srcdir/$_pkgorig-$_commit"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
1d6fd639fbd7e138535323e5b27a4da66f6dcf46ee1603eaf39eea4fe9d4fcf638df6419fa07941b9500accda1134d6a84e53b3031892c2047c5ef286958de11 py3-cro-0.0.5.1.tar.gz
|
|
"
|