diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-26 19:08:46 -0300 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-10-25 20:02:58 +0000 |
commit | 3ac2256dbd76ebf75287c6dd695b917b1bbd8973 (patch) | |
tree | eb64a508a73c70b783a14db9940b16802a9fbec6 /main | |
parent | 413931fd4232bf34a033dfe82b26d8f23c6b1bac (diff) | |
download | aports-3ac2256dbd76ebf75287c6dd695b917b1bbd8973.tar.bz2 aports-3ac2256dbd76ebf75287c6dd695b917b1bbd8973.tar.xz |
main/py3-webassets: drop py2
Closes !172
Diffstat (limited to 'main')
-rw-r--r-- | main/py3-webassets/APKBUILD | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/main/py3-webassets/APKBUILD b/main/py3-webassets/APKBUILD index 614e4a45fe..549cbfc340 100644 --- a/main/py3-webassets/APKBUILD +++ b/main/py3-webassets/APKBUILD @@ -1,38 +1,28 @@ # Maintainer: -pkgname=py-webassets -_pkgname=${pkgname#py-} +pkgname=py3-webassets +_pkgname=webassets pkgver=0.12.1 -pkgrel=1 +pkgrel=2 pkgdesc="Asset management for web development" url="https://pypi.python.org/pypi/webassets" arch="noarch" -license="BSD" -depends="python2" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +license="BSD-2-Clause" +depends="python3" +makedepends="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-webassets" # Backwards compatibility +provides="py-webassets=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$_builddir" - python2 setup.py build || return 1 + cd "$builddir" + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } md5sums="429401824556e6e0868e437f9e561ba6 webassets-0.12.1.tar.gz" |