[arch-commits] Commit in python-pybox2d/repos/community-x86_64 (PKGBUILD PKGBUILD)
Balló György
bgyorgy at archlinux.org
Mon Mar 16 10:38:24 UTC 2020
Date: Monday, March 16, 2020 @ 10:38:23
Author: bgyorgy
Revision: 599110
archrelease: copy trunk to community-x86_64
Added:
python-pybox2d/repos/community-x86_64/PKGBUILD
(from rev 599109, python-pybox2d/trunk/PKGBUILD)
Deleted:
python-pybox2d/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 94 ++++++++++++++++++++++++-------------------------------------
1 file changed, 38 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-16 10:38:20 UTC (rev 599109)
+++ PKGBUILD 2020-03-16 10:38:23 UTC (rev 599110)
@@ -1,56 +0,0 @@
-# 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=4
-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() {
- # Generate py library properly
- rm $_pkgbase-$pkgver/library/Box2D/Box2D.py
- cp -a $_pkgbase-$pkgver{,-python2}
-}
-
-build() {
- cd $_pkgbase-$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
-
- cd ../$_pkgbase-$pkgver-python2
- 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
- python2 setup.py build
-}
-
-check() {
- cd $_pkgbase-$pkgver
- python setup.py test
-
- cd ../$_pkgbase-$pkgver-python2
- python2 setup.py test || warning "Tests failed"
-}
-
-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"
-}
Copied: python-pybox2d/repos/community-x86_64/PKGBUILD (from rev 599109, python-pybox2d/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-16 10:38:23 UTC (rev 599110)
@@ -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=5
+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