[arch-commits] Commit in pycosat/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 06:15:19 UTC 2019


    Date: Monday, November 4, 2019 @ 06:15:18
  Author: felixonmars
Revision: 523344

archrelease: copy trunk to community-staging-x86_64

Added:
  pycosat/repos/community-staging-x86_64/
  pycosat/repos/community-staging-x86_64/PKGBUILD
    (from rev 523342, pycosat/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: pycosat/repos/community-staging-x86_64/PKGBUILD (from rev 523342, pycosat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-11-04 06:15:18 UTC (rev 523344)
@@ -0,0 +1,44 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Daniel Maslowski <info at orangecms.org>
+
+pkgbase=pycosat
+pkgname=(python-pycosat python2-pycosat)
+pkgver=0.6.3
+pkgrel=3
+arch=(x86_64)
+url="https://github.com/ContinuumIO/pycosat"
+license=(MIT)
+makedepends=(python python2)
+source=($pkgbase-$pkgver.tar.gz::https://github.com/ContinuumIO/$pkgbase/archive/$pkgver.tar.gz)
+sha256sums=('abcaf3d6afb332b0d8363590d0aaa81f00f71142900fbae2608f7d595d5e4492')
+
+prepare() {
+  cp -r $pkgbase-$pkgver{,-py2}
+}
+
+build() {
+  cd $pkgbase-$pkgver
+  python setup.py build
+
+  cd ../$pkgbase-$pkgver-py2
+  python2 setup.py build
+}
+
+package_python-pycosat() {
+  pkgdesc="Python 3 bindings to picosat (a SAT solver)"
+  depends=(python)
+
+  cd $pkgbase-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+package_python2-pycosat() {
+  pkgdesc="Python 2 bindings to picosat (a SAT solver)"
+  depends=(python2)
+
+  cd $pkgbase-$pkgver-py2 
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
+



More information about the arch-commits mailing list