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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 17:00:57 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:00:57
  Author: foutrelis
Revision: 752178

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: python-pybox2d/repos/community-staging-x86_64/PKGBUILD (from rev 752177, python-pybox2d/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 17:00:57 UTC (rev 752178)
@@ -0,0 +1,38 @@
+# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+_pkgname=pybox2d
+pkgname=python-pybox2d
+pkgver=2.3.2
+pkgrel=6
+epoch=1
+pkgdesc='Python wrapper for Box2D'
+arch=('x86_64')
+url='https://github.com/pybox2d/pybox2d'
+license=('custom')
+depends=('python')
+makedepends=('python-setuptools' 'swig')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pybox2d/$_pkgname/archive/$pkgver.tar.gz")
+sha256sums=('ca7111557df3ecda3cb48b6c5fb3290fa8b45b6226a34867d2a85cbee5747266')
+
+prepare() {
+	# Generate py library properly
+	rm $_pkgname-$pkgver/library/Box2D/Box2D.py
+}
+
+build() {
+	cd $_pkgname-$pkgver
+	swig -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i
+	python setup.py build
+}
+
+check() {
+	cd $_pkgname-$pkgver
+	python setup.py test
+}
+
+package() {
+	cd $_pkgname-$pkgver
+	python 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