diff options
author | Nathan Owens | 2020-05-03 13:29:56 -0500 |
---|---|---|
committer | Nathan Owens | 2020-05-03 13:30:15 -0500 |
commit | 1ecf04023b6c63451b0d20cd657c2ec81f1b5a16 (patch) | |
tree | d2c2460940ada3eafa1fe476b89fea2daab5cfd6 | |
parent | ea041b3570b230ec819aa0c4356cc7f53e61959a (diff) | |
download | aur-1ecf04023b6c63451b0d20cd657c2ec81f1b5a16.tar.gz |
Update to 1.0.4
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 22 insertions, 27 deletions
@@ -1,19 +1,18 @@ pkgbase = python-lzstring pkgdesc = LZ-string compression for Python - pkgver = 1.0.3 - pkgrel = 2 + pkgver = 1.0.4 + pkgrel = 1 url = https://pypi.python.org/pypi/lzstring arch = any license = MIT makedepends = python makedepends = python-setuptools + makedepends = git makedepends = python2 makedepends = python2-setuptools options = !emptydirs - source = python-lzstring-1.0.3.tar.gz::https://pypi.python.org/packages/2b/e0/06231b1114cae946b6d3505ab8157f7308b207e3f8e3eb58334769dab6c0/lzstring-1.0.3.tar.gz - source = https://raw.githubusercontent.com/gkovacs/lz-string-python/master/LICENSE.md - sha256sums = d54dd5a5f86837ccfc1343cc9f1cb0674d2d6ebd4b49f6408c35104f0a996cb4 - sha256sums = a2589e8eae78aab39a3b75a9548291f005502bd92b8bea0044cd15ddeb8ba402 + source = git+https://github.com/gkovacs/lz-string-python#commit=0b2773ede157fb69f0c837b853ccc5ab9c236c58 + sha256sums = SKIP pkgname = python-lzstring depends = python @@ -1,51 +1,47 @@ # Maintainer: Clint Valentine <valentine.clint@gmail.com> +# Maintainer: Nathan Owens <ndowens @ artixlinux.org> -_name=lzstring pkgbase='python-lzstring' pkgname=('python-lzstring' 'python2-lzstring') -pkgver=1.0.3 -pkgrel=2 +pkgver=1.0.4 +pkgrel=1 pkgdesc="LZ-string compression for Python" arch=('any') url="https://pypi.python.org/pypi/lzstring" license=('MIT') -makedepends=( - 'python' 'python-setuptools' - 'python2' 'python2-setuptools') +makedepends=('python' 'python-setuptools' 'git' + 'python2' 'python2-setuptools') options=(!emptydirs) -source=( - "${pkgname}"-"${pkgver}".tar.gz::https://pypi.python.org/packages/2b/e0/06231b1114cae946b6d3505ab8157f7308b207e3f8e3eb58334769dab6c0/lzstring-1.0.3.tar.gz - https://raw.githubusercontent.com/gkovacs/lz-string-python/master/LICENSE.md -) -sha256sums=( - 'd54dd5a5f86837ccfc1343cc9f1cb0674d2d6ebd4b49f6408c35104f0a996cb4' - 'a2589e8eae78aab39a3b75a9548291f005502bd92b8bea0044cd15ddeb8ba402' -) +_commit=0b2773ede157fb69f0c837b853ccc5ab9c236c58 +source=("git+https://github.com/gkovacs/lz-string-python#commit=${_commit}") +sha256sums=('SKIP') prepare() { - cp -a "${_name}"-"${pkgver}"{,-py2} + cp -a "lz-string-python"{,-py2} } build(){ - cd "${srcdir}"/"${_name}"-"${pkgver}" + cd "${srcdir}/lz-string-python" python setup.py build - cd "${srcdir}"/"${_name}"-"${pkgver}"-py2 + cd "${srcdir}/lz-string-python-py2" python2 setup.py build } package_python2-lzstring() { depends=('python2' 'python2-future') - install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE - cd "${_name}"-"${pkgver}"-py2 + cd "${srcdir}/lz-string-python" python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build + + install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE } package_python-lzstring() { depends=('python' 'python-future') - install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE - cd "${_name}"-"${pkgver}" + cd "${srcdir}/lz-string-python" python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build + +install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE } |