mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 03:47:14 +08:00
added new package: python-distutils-extra, version 2.22
This commit is contained in:
parent
0dc73152ab
commit
9d54fb886f
30
python-distutils-extra/PKGBUILD
Normal file
30
python-distutils-extra/PKGBUILD
Normal file
@ -0,0 +1,30 @@
|
||||
#
|
||||
# Chakra Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname=python-distutils-extra
|
||||
pkgver=2.22
|
||||
pkgrel=1
|
||||
pkgdesc='Enhancements to the Python build system'
|
||||
arch=('any')
|
||||
license=('GPL')
|
||||
url='http://packages.qa.debian.org/p/python-distutils-extra.html'
|
||||
depends=('intltool' 'python')
|
||||
makedepends=('python-distribute')
|
||||
source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz)
|
||||
md5sums=('c085b71263c37af48824f8a353475181')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/$pkgname-$pkgver"
|
||||
|
||||
# python2 fix
|
||||
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' setup.py test/auto.py
|
||||
sed -i 's_\(subprocess.call.*\)python_\1python2_' DistUtilsExtra/command/build_kdeui.py
|
||||
|
||||
python2 setup.py install --root="${pkgdir}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user