python3-appdirs: moved from opt, adopted port

This commit is contained in:
Tim Biermann 2023-08-19 11:56:32 +02:00
parent cb189f618f
commit 5190b2327d
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,12 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python3.10/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/__pycache__/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/__pycache__/appdirs.cpython-310.pyc
drwxr-xr-x root/root usr/lib/python3.10/site-packages/appdirs-1.4.4-py3.10.egg-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/appdirs-1.4.4-py3.10.egg-info/PKG-INFO
-rw-r--r-- root/root usr/lib/python3.10/site-packages/appdirs-1.4.4-py3.10.egg-info/SOURCES.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/appdirs-1.4.4-py3.10.egg-info/dependency_links.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/appdirs-1.4.4-py3.10.egg-info/top_level.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/appdirs.py

View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF34s+3Gt2M7Ev+Ov9l8Olp+7u4o/OayHtmFS5fGu894zp0bF2orvVOipKSDksRSjMkQNqe1DGm2/fTA0kVRKgCg8=
SHA256 (Pkgfile) = ad0a6de0659e5abfe6c66c0a1ce412460884430e44d6c169ff5dd5276f7001a3
SHA256 (.footprint) = 2497a4c31240af78e9e8a69c3b7b3198984f7dd8c9c58cb35d1ff2b30a90e067
SHA256 (appdirs-1.4.4.tar.gz) = 7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41

22
python3-appdirs/Pkgfile Normal file
View File

@ -0,0 +1,22 @@
# Description: module for determining appropriate platform-specific dirs
# URL: https://github.com/ActiveState/appdirs
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-setuptools
name=python3-appdirs
version=1.4.4
release=2
source=(https://pypi.org/packages/source/a/appdirs/appdirs-$version.tar.gz)
build() {
cd appdirs-$version
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr \
--root=$PKG \
--skip-build
# remove sdist metadata, as wheel metadata will be used with python3-pip
find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \
-name "${name#*-}-$version-py*.egg-info" -delete
}