[arch-commits] Commit in python-pybox2d/repos/community-x86_64 (PKGBUILD PKGBUILD)

Balló György bgyorgy at archlinux.org
Sat Jun 22 13:25:04 UTC 2019


    Date: Saturday, June 22, 2019 @ 13:25:03
  Author: bgyorgy
Revision: 482769

archrelease: copy trunk to community-x86_64

Added:
  python-pybox2d/repos/community-x86_64/PKGBUILD
    (from rev 482768, python-pybox2d/trunk/PKGBUILD)
Deleted:
  python-pybox2d/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   82 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 46 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-22 13:25:00 UTC (rev 482768)
+++ PKGBUILD	2019-06-22 13:25:03 UTC (rev 482769)
@@ -1,36 +0,0 @@
-# $Id$
-# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
-# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
-
-pkgbase=python-pybox2d
-pkgname=('python2-pybox2d')
-pkgver=2.3.2
-pkgrel=1
-epoch=1
-arch=('x86_64')
-url='https://github.com/pybox2d/pybox2d'
-license=('GPL')
-makedepends=('git' 'swig' 'python2-setuptools')
-source=("$pkgbase::git+https://github.com/pybox2d/pybox2d.git#tag=$pkgver")
-md5sums=('SKIP')
-
-build() {
-  cd "$pkgbase"
-
-  python2 setup.py setopt --command=build_ext --option=swig --set-value=swig
-  python2 setup.py build
-}
-
-package_python2-pybox2d() {
-  pkgdesc='Python wrapper for Box2D'
-
-  cd "$pkgbase"
-
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  # Fixes the warning about a missing dependency on python
-  sed -i 's:python:python2:g' \
-    "$pkgdir/usr/lib/python2.7/site-packages/Box2D/__init__.py"
-}
-
-# vim: sw=2 ts=2 et:

Copied: python-pybox2d/repos/community-x86_64/PKGBUILD (from rev 482768, python-pybox2d/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-06-22 13:25:03 UTC (rev 482769)
@@ -0,0 +1,46 @@
+# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+_pkgbase=pybox2d
+pkgbase=python-pybox2d
+pkgname=('python-pybox2d' 'python2-pybox2d')
+pkgver=2.3.2
+pkgrel=2
+epoch=1
+pkgdesc='Python wrapper for Box2D'
+arch=('x86_64')
+url='https://github.com/pybox2d/pybox2d'
+license=('custom')
+makedepends=('python-setuptools' 'python2-setuptools' 'swig')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pybox2d/$_pkgbase/archive/$pkgver.tar.gz")
+sha256sums=('ca7111557df3ecda3cb48b6c5fb3290fa8b45b6226a34867d2a85cbee5747266')
+
+prepare() {
+	cp -a $_pkgbase-$pkgver{,-python2}
+}
+
+build() {
+	cd $_pkgbase-$pkgver
+	python setup.py setopt --command=build_ext --option=swig --set-value=swig
+	python setup.py build
+
+	cd ../$_pkgbase-$pkgver-python2
+	python2 setup.py setopt --command=build_ext --option=swig --set-value=swig
+	python2 setup.py build
+}
+
+package_python-pybox2d() {
+	depends=('python')
+
+	cd $_pkgbase-$pkgver
+	python setup.py install --root "$pkgdir" --optimize=1 --skip-build
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pybox2d() {
+	depends=('python2')
+
+	cd $_pkgbase-$pkgver-python2
+	python2 setup.py install --root "$pkgdir" --optimize=1 --skip-build
+	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


More information about the arch-commits mailing list