Date: Thursday, April 6, 2023 @ 17:43:36
  Author: felixonmars
Revision: 1440069

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: python-debugpy/repos/community-staging-x86_64/PKGBUILD (from rev 
1440068, python-debugpy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-06 17:43:36 UTC (rev 1440069)
@@ -0,0 +1,36 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: mark.blakeney at bullet-systems dot net
+
+_pipname=debugpy
+pkgname=python-$_pipname
+pkgver=1.6.6
+pkgrel=2
+pkgdesc='An implementation of the Debug Adapter Protocol for Python'
+arch=(x86_64)
+url='https://aka.ms/debugpy'
+license=(EPL MIT)
+depends=(python)
+makedepends=(python-setuptools)
+source=(https://github.com/microsoft/debugpy/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('2a6668264c68a0bf653fdd5596a49700130eb16ddefed484f9c6ed8ded8fab22')
+
+prepare() {
+  cd $_pipname-$pkgver
+# remove precompiled libs
+  rm 
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/*.{so,dll,dylib,exe,pdb}
+}
+
+build() {
+  cd $_pipname-$pkgver
+  python setup.py build
+# Compile attach libraries
+  cd build/lib*/debugpy/_vendored/pydevd/pydevd_attach_to_process
+  g++ ${CXXFLAGS} -m64 -shared -o attach_linux_amd64.so -fPIC -nostartfiles 
linux_and_mac/attach.cpp ${LDFLAGS}
+}
+
+package() {
+  cd $_pipname-$pkgver
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to