2015-02-19 22:07:28 +11:00
|
|
|
# Description: Python 3.4 Enum backported
|
|
|
|
# URL: https://pypi.python.org/pypi/enum34
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2017-02-05 16:32:37 +11:00
|
|
|
# Depends on: python-setuptools
|
2015-02-19 22:07:28 +11:00
|
|
|
|
2018-11-10 22:08:39 +11:00
|
|
|
name=python-enum34
|
2016-11-27 12:57:18 +11:00
|
|
|
version=1.1.6
|
2015-02-19 22:07:28 +11:00
|
|
|
release=1
|
2018-11-10 22:08:39 +11:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.tar.gz)
|
2015-02-19 22:07:28 +11:00
|
|
|
|
|
|
|
build() {
|
2018-11-10 22:08:39 +11:00
|
|
|
cd ${name#*-}-$version
|
2016-11-27 12:57:18 +11:00
|
|
|
|
|
|
|
/usr/bin/python setup.py build
|
2015-02-19 22:07:28 +11:00
|
|
|
/usr/bin/python setup.py install --root=$PKG --optimize=1
|
|
|
|
|
|
|
|
rm $PKG/usr/lib/python*/site-packages/enum/{LICENSE,README}
|
|
|
|
}
|