George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / 
autopep8


Commits:
37869031 by George Rawlinson at 2023-09-16T02:42:35+00:00
upgpkg: 1:2.0.4-1

* New upstream release.
* Symlink license file.

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -4,8 +4,8 @@
 # Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>
 
 pkgname=autopep8
-pkgver=2.0.2
-pkgrel=2
+pkgver=2.0.4
+pkgrel=1
 epoch=1
 pkgdesc='A tool that automatically formats Python code to conform to the PEP 8 
style guide'
 arch=('any')
@@ -24,7 +24,7 @@ makedepends=(
   'python-setuptools'
 )
 checkdepends=('python-pytest')
-_commit='6e6d4ba4a043da1a56ca0ec7280a7d4f40283215'
+_commit='8f12c0ab83c3dcc9eaf5078393dd2c53e1d253d2'
 source=("$pkgname::git+$url#commit=$_commit")
 sha512sums=('SKIP')
 b2sums=('SKIP')
@@ -52,8 +52,11 @@ package() {
 
   python -m installer --destdir="$pkgdir" dist/*.whl
 
-  # license
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+  # symlink license file
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s "$site_packages/$pkgname-$pkgver.dist-info/LICENSE" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
 # vim:set ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/autopep8/-/commit/37869031e627475bd89d412a263343d5e5b405a7

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/autopep8/-/commit/37869031e627475bd89d412a263343d5e5b405a7
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to