summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..43af7ef1583
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: spider-mario <spidermario@free.fr>
+# Contributor: Jerome Leclanche <jerome@leclan.ch>
+
+_pkgname=PuLP
+pkgname=python-${_pkgname,,}
+pkgver=1.6.0
+pkgrel=1
+pkgdesc="A Linear Programming modeler written in Python"
+arch=("any")
+license=("BSD")
+url="https://github.com/coin-or/pulp"
+depends=("python-pyparsing")
+conflicts=("python2-pulp")
+source=("https://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
+sha512sums=('4b04f8fdde731b82b54470c0e501344c37e8d1b7dce87f05a95b28de08c59c457ceaca38da6f43cc0e03a2c51179a89bcc10ab522eed36f7655172b35de695b9')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ 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/
+}