summaryrefslogtreecommitdiff
path: root/python3-appdirs/Pkgfile
blob: 90dda744142527e1309b57862189c77e226fa359 (plain)
    1 # Description: A Python module for determining appropriate platform-specific dirs.
    2 # URL: https://pypi.python.org/pypi/packaging/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: python3
    5 
    6 name=python3-appdirs
    7 version=1.4.3
    8 release=1
    9 source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
   10 	https://crux.ster.zone/downloads/get-pip.py
   11 #	https://bootstrap.pypa.io/get-pip.py
   12 )
   13 
   14 build() {
   15 	cd ${name#*-}-$version
   16 
   17 	if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
   18 		install -d build
   19 		sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py
   20 		/usr/bin/python3 $SRC/get-pip.py --root=$SRC/build
   21 
   22 		local PYTHONVERSION=$(python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
   23 
   24 		PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
   25 			/usr/bin/python3 setup.py build
   26 
   27 		PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
   28 			/usr/bin/python3 setup.py install \
   29 			--prefix=/usr --root=$PKG --optimize=1
   30 	else
   31 
   32 		/usr/bin/python3 setup.py build
   33 
   34 		/usr/bin/python3 setup.py install \
   35 			--prefix=/usr --root=$PKG --optimize=1
   36 	fi
   37 }

Generated by cgit