diff options
author | dai9ah <dai9ah@protonmail.com> | 2018-02-26 13:37:52 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-05 23:28:10 +0000 |
commit | 6d42e1458cf7f007ab4e31148eb471f944105894 (patch) | |
tree | 99beae0a569acee9cf172eb551ab9a615189d6a2 /testing/py-pep8-naming | |
parent | e3385956332c7af7b03dd7d286b08b94aa5bacb2 (diff) | |
download | aports-6d42e1458cf7f007ab4e31148eb471f944105894.tar.bz2 aports-6d42e1458cf7f007ab4e31148eb471f944105894.tar.xz |
testing/py-pep8-naming: upgrade to 0.5.0, modernize
Diffstat (limited to 'testing/py-pep8-naming')
-rw-r--r-- | testing/py-pep8-naming/APKBUILD | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/testing/py-pep8-naming/APKBUILD b/testing/py-pep8-naming/APKBUILD index 8615524038..9128bc5eda 100644 --- a/testing/py-pep8-naming/APKBUILD +++ b/testing/py-pep8-naming/APKBUILD @@ -2,8 +2,8 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-pep8-naming _pkgname=pep8-naming -pkgver=0.2.1 -pkgrel=1 +pkgver=0.5.0 +pkgrel=0 pkgdesc="Check PEP-8 naming conventions plugin for flake8" url="https://github.com/flintwork/pep8-naming" arch="noarch" @@ -14,28 +14,16 @@ makedepends="python2-dev py-setuptools" install="" subpackages="" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -_builddir="$srcdir"/$_pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +_builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$_builddir" - python2 setup.py build || return 1 + python2 setup.py build } package() { cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python2 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="9702cf8ff42c93c4eefa4fda8031e32d pep8-naming-0.2.1.tar.gz" -sha256sums="96a27240a08e0c73add1cf6d3191dbc566a6b097c9ea110761d11ce39af44077 pep8-naming-0.2.1.tar.gz" -sha512sums="f1bd7a3eb430b88a366f2b8bc0d10df5a1efe49b3303f2bd55066c5f5cb790d14e149ad09e3decffefa1cd4cbe5420240b307885262d442e786dcf272e56f3a6 pep8-naming-0.2.1.tar.gz" +sha512sums="edf3c85140dda2ccfc172b75b8d65d70623446892e944d1b282fc64196d30ef96e21f02b519b6846e8e738acb28902ac60fdf61e276da59f5d722bba7554694f pep8-naming-0.5.0.tar.gz" |