diff options
Diffstat (limited to 'testing/py3-setuptools-lint/APKBUILD')
-rw-r--r-- | testing/py3-setuptools-lint/APKBUILD | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/testing/py3-setuptools-lint/APKBUILD b/testing/py3-setuptools-lint/APKBUILD index 1b8250e733..9fdf960b43 100644 --- a/testing/py3-setuptools-lint/APKBUILD +++ b/testing/py3-setuptools-lint/APKBUILD @@ -1,41 +1,26 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-setuptools-lint +pkgname=py3-setuptools-lint _pkgname=setuptools-lint pkgver=0.3 -pkgrel=0 +pkgrel=1 pkgdesc="Setuptools plugin for Git" url="https://github.com/johnnoone/setuptools-pylint" arch="noarch" license="BSD" -depends="python2" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +depends="python3 py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_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 -} +replaces="py-setuptools-lint" # Backwards compatibility +provides="py-setuptools-lint=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$_builddir" - python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="1a44bb3e64fd173579eb22d4b15e7869 setuptools-lint-0.3.tar.gz" -sha256sums="78e0011ce0bcd52e561ff9842ef445f5d306d83f40709235ef4f5deb47f851c7 setuptools-lint-0.3.tar.gz" sha512sums="b4e003fa998a1356cf54bc6d2b357ff7ea6d3086bca31221aa6ee27f17389577d2e5e6f7c71891dc4ce84b05b75a9d65f371b025ca626d204db323c044e27794 setuptools-lint-0.3.tar.gz" |