summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Ostuni2017-07-12 01:45:28 +0200
committerDario Ostuni2017-07-12 01:45:28 +0200
commitdb6d90c440874e1271c075fdd4a4155fb6bb2ab6 (patch)
tree41156f1e1962ccfc6eefaeda150c33b95d9b2001
downloadaur-db6d90c440874e1271c075fdd4a4155fb6bb2ab6.tar.gz
Initial version
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD30
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f13a35463c3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Tue Jul 11 23:45:24 UTC 2017
+pkgbase = python-or-tools
+ pkgdesc = Google's Operations Research tools
+ pkgver = 6.1
+ pkgrel = 1
+ url = https://github.com/google/or-tools
+ arch = x86_64
+ arch = i686
+ arch = aarch64
+ arch = armv7h
+ license = Apache2
+ makedepends = cmake
+ depends = python
+ options = !emptydirs
+ source = https://github.com/google/or-tools/archive/v6.1.tar.gz
+ sha256sums = 3a1d4d6ffca77467a1cc1bdc4bb480652c0a9314100d6fb32924826c2eb5ba94
+
+pkgname = python-or-tools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..03ee79f6953
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Dario Ostuni <another.code.996@gmail.com>
+pkgname=python-or-tools
+pkgver=6.1
+pkgrel=1
+pkgdesc="Google's Operations Research tools"
+arch=('x86_64' 'i686' 'aarch64' 'armv7h')
+url="https://github.com/google/or-tools"
+license=('Apache2')
+depends=('python')
+makedepends=('cmake')
+options=(!emptydirs)
+source=("https://github.com/google/or-tools/archive/v${pkgver}.tar.gz")
+sha256sums=('3a1d4d6ffca77467a1cc1bdc4bb480652c0a9314100d6fb32924826c2eb5ba94')
+
+build() {
+ cd "${srcdir}/or-tools-${pkgver}"
+ mkdir -p "dependencies/install/lib"
+ pushd "dependencies/install"
+ ln -s "lib" "lib64"
+ popd
+ make third_party -j1
+ make python
+}
+
+package() {
+ cd "${srcdir}/or-tools-${pkgver}"
+ mkdir -p "$pkgdir/usr/lib/python3.6/site-packages/"
+ find ortools/ -name '*.py' -or -name '*.so' | xargs cp --parents -t "$pkgdir/usr/lib/python3.6/site-packages/"
+ cp "lib/libortools.so" "$pkgdir/usr/lib/"
+}