mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 11:21:17 +02:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
pkgname=py-ruffus
|
|
pkgver=2.7.0
|
|
pkgrel=0
|
|
pkgdesc="A lightweight Python library for computational pipelines."
|
|
url="http://www.ruffus.org.uk/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
makedepends="python2-dev python3-dev py-setuptools"
|
|
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
|
|
source="https://pypi.python.org/packages/source/r/ruffus/ruffus-$pkgver.tar.gz"
|
|
builddir="$srcdir/ruffus-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
depends="$depends $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
sha512sums="467b30fb55dbcfae342ccf3330b7ee18592e41a94b2c8e369f0b60cf8ff4f586b6590d15b5ef7848b85c3e42b75d21712ceb6bd57e104655aca6f366ecd3b556 ruffus-2.7.0.tar.gz"
|