diff options
author | getzze | 2021-04-26 12:49:41 +0100 |
---|---|---|
committer | getzze | 2021-04-26 12:49:41 +0100 |
commit | fbe9a53102a0620571a506f0122e55c14ad8c310 (patch) | |
tree | e4c5ba8bcd85b9069f5f4b6c8f85162383aae499 | |
parent | 35c24a6338064f83d599c15bce7f7591eca985ef (diff) | |
download | aur-fbe9a53102a0620571a506f0122e55c14ad8c310.tar.gz |
install sgmllib with setup.py
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 7 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = python-feedparser-dev pkgdesc = Parse RSS and Atom feeds in Python: development version pkgver = 6.0.2 - pkgrel = 2 + pkgrel = 3 url = https://github.com/kurtmckee/feedparser/ arch = any license = custom @@ -4,7 +4,8 @@ pkgbase=python-feedparser-dev pkgname=('python-feedparser-dev' 'python-sgmllib3k') pkgver=6.0.2 -pkgrel=2 +pkgrel=3 +_sgmllib3k_ver=1.0.0 pkgdesc="Parse RSS and Atom feeds in Python: development version" arch=('any') url="https://github.com/kurtmckee/feedparser/" @@ -14,13 +15,13 @@ conflicts=('python-feedparser') makedepends=('python' 'libxml2' 'python-setuptools') depends=('python' 'libxml2') source=(feedparser-${pkgver}.tar.gz::https://github.com/kurtmckee/feedparser/archive/${pkgver}.tar.gz - https://files.pythonhosted.org/packages/source/s/sgmllib3k/sgmllib3k-1.0.0.tar.gz) + https://files.pythonhosted.org/packages/source/s/sgmllib3k/sgmllib3k-${_sgmllib3k_ver}.tar.gz) sha256sums=('b211cfb80c4daefca64b773ade77340727187564fad9c2c94b37da8e1f03788f' '7868fb1c8bfa764c1ac563d3cf369c381d1325d36124933a726f29fcdaa812e9') build() { - cd "${srcdir}/sgmllib3k-1.0.0" + cd "${srcdir}/sgmllib3k-${_sgmllib3k_ver}" python /usr/lib/$(readlink /usr/bin/python3)/compileall.py sgmllib.py } @@ -39,11 +40,7 @@ package_python-sgmllib3k() { pkgdesc="Port of sgmllib to Python3" license=('PSF') - ext="3$(readlink /usr/bin/python3 | sed -En "s/python3.//p")" - cd "${srcdir}/sgmllib3k-1.0.0" - install -Dm644 sgmllib.py \ - "${pkgdir}/usr/lib/$(readlink /usr/bin/python3)/site-packages/sgmllib.py" - install -Dm644 __pycache__/sgmllib.cpython-${ext}.pyc \ - "${pkgdir}/usr/lib/$(readlink /usr/bin/python3)/site-packages/__pycache__/sgmllib.cpython-${ext}.pyc" + cd "${srcdir}/sgmllib3k-${_sgmllib3k_ver}" + python setup.py install --root="${pkgdir}" } |