summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD39
2 files changed, 11 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ccdc8fbc217..87f8ab1f2cc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,12 +6,8 @@ pkgbase = python-pulp
arch = any
license = BSD
makedepends = python-setuptools
- makedepends = python2-setuptools
+ depends = python-amply
source = https://files.pythonhosted.org/packages/source/P/PuLP/PuLP-2.5.1.tar.gz
b2sums = ace8e52eac3d911039ea9c81417de615c1cb7b2ef136c206bdc2fc01657d67379168617148718156314b1d45f27cc099e226a08e561b297b7d2991b5effe9735
pkgname = python-pulp
- depends = python-amply
-
-pkgname = python2-pulp
- depends = python2-amply
diff --git a/PKGBUILD b/PKGBUILD
index 48d0cbe7024..af41a255bf6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,52 +2,33 @@
# Contributor: Jerome Leclanche <jerome@leclan.ch>
_pkgname=PuLP
-pkgbase=python-pulp
-pkgname=(python-pulp python2-pulp)
+pkgname=python-pulp
pkgver=2.5.1
pkgrel=1
pkgdesc="A Linear Programming modeler written in Python"
arch=("any")
license=("BSD")
url="https://github.com/coin-or/pulp"
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python-amply')
+makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
b2sums=('ace8e52eac3d911039ea9c81417de615c1cb7b2ef136c206bdc2fc01657d67379168617148718156314b1d45f27cc099e226a08e561b297b7d2991b5effe9735')
prepare() {
- for _python in python python2; do
- rm -fr $_python-pulp
- cp -r $_pkgname-$pkgver $_python-pulp
- done
+ rm -fr python-pulp
+ cp -r $_pkgname-$pkgver python-pulp
}
build() {
- for _python in python python2; do
- pushd $_python-pulp
- $_python setup.py build
- popd
- done
+ cd python-pulp
+ python setup.py build
}
-_package_for_python_version() {
- _python="$1"
+package() {
+ cd python-pulp
- cd $_python-pulp
-
- $_python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
install --directory "$pkgdir"/usr/share/licenses/$pkgname/
install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/
}
-
-package_python-pulp() {
- depends=('python-amply')
- _package_for_python_version python
-}
-
-package_python2-pulp() {
- depends=('python2-amply')
- _package_for_python_version python2
-
- rm "$pkgdir"/usr/bin/pulptest
-}