mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
community/py-distutils-extra: modernize abuild
This commit is contained in:
parent
5ad73bb97b
commit
85812ec2d5
@ -1,38 +1,26 @@
|
||||
# Contributor: William Pitcock <nenolod@dereferenced.org>
|
||||
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
||||
pkgname=py-distutils-extra
|
||||
_pkgname=python-distutils-extra
|
||||
pkgver=2.39
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Enhanced distutils package for python"
|
||||
url="https://launchpad.net/python-distutils-extra"
|
||||
arch="noarch"
|
||||
license="GPL"
|
||||
depends="py-setuptools"
|
||||
makedepends="python2-dev"
|
||||
install=""
|
||||
source="https://launchpad.net/python-distutils-extra/trunk/$pkgver/+download/python-distutils-extra-$pkgver.tar.gz"
|
||||
_builddir="$srcdir"/python-distutils-extra-$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
|
||||
}
|
||||
source="https://launchpad.net/python-distutils-extra/trunk/$pkgver/+download/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
python2 setup.py build || return 1
|
||||
cd "$builddir"
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
python2 setup.py install --root="$pkgdir" || return 1
|
||||
cd "$builddir"
|
||||
python2 setup.py install --root="$pkgdir"
|
||||
}
|
||||
|
||||
md5sums="16e06db0ef73a35b4bff4b9eed5699b5 python-distutils-extra-2.39.tar.gz"
|
||||
sha256sums="723f24f4d65fc8d99b33a002fbbb3771d4cc9d664c97085bf37f3997ae8063af python-distutils-extra-2.39.tar.gz"
|
||||
sha512sums="e3b4d1ed22767fb4c6dbbdccef960865b6fda01d18dc38cb8f9357c09c7eabb78466fce053e407a196eca257d07d57c5c1ef47f358a5979c7f22e4b11775124e python-distutils-extra-2.39.tar.gz"
|
||||
|
Loading…
Reference in New Issue
Block a user