Commit aa287423 authored by Jakub Jirutka's avatar Jakub Jirutka

main/py-uritemplate: fix name of subpackages

pyX-uritemplate.py -> pyX-uritemplate
parent b3f9e7f5
......@@ -3,15 +3,15 @@
pkgname=py-uritemplate
_pkgname=uritemplate.py
pkgver=3.0.0
pkgrel=0
pkgrel=1
pkgdesc="Python module to use URO templates"
url=" https://uritemplate.readthedocs.org"
url="https://uritemplate.readthedocs.org"
arch="noarch"
license="BSD"
options="!check"
depends=""
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
......@@ -36,11 +36,14 @@ _py() {
}
_py2() {
replaces="$pkgname"
replaces="$pkgname py2-$_pkgname" # for backward compatibility
provides="py2-$_pkgname" # for backward compatibility
_py python2
}
_py3() {
replaces="py3-$_pkgname" # for backward compatibility
provides="py3-$_pkgname" # for backward compatibility
_py python3
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment