Commit 85812ec2 authored by Roberto Oliveira's avatar Roberto Oliveira

community/py-distutils-extra: modernize abuild

parent 5ad73bb9
# 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment