mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
08a66c4024
new pkg added to fullfill checkdepends new order file python3.order
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
|
|
pkgbase=python-pbr
|
|
pkgname=(python3-pbr python2-pbr)
|
|
pkgver=1.8.1
|
|
pkgrel=1
|
|
pkgdesc="Python Build Reasonableness"
|
|
arch=('any')
|
|
url=https://pypi.python.org/pypi/pbr
|
|
license=(Apache)
|
|
makedepends=(python2-setuptools python3-setuptools git)
|
|
source=(http://pypi.python.org/packages/source/p/${pkgname#*-}/${pkgname#*-}-$pkgver.tar.gz)
|
|
sha256sums=('e2127626a91e6c885db89668976db31020f0af2da728924b56480fc7ccf09649')
|
|
|
|
prepare() {
|
|
cp -a ${pkgname#*-}-$pkgver python2-pbr-$pkgver
|
|
find python2-pbr-$pkgver -name \*.py -exec sed -i '1s/python$/&2/' {} +
|
|
}
|
|
|
|
build() {
|
|
export SKIP_PIP_INSTALL=1
|
|
cd ${pkgname#*-}-$pkgver/
|
|
python3 setup.py build
|
|
cd $srcdir/python2-pbr-$pkgver
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python3-pbr() {
|
|
cd ${pkgname#*-}-$pkgver/
|
|
depends=(python3-pip)
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
package_python2-pbr() {
|
|
cd $pkgname-$pkgver/
|
|
depends=(python2-pip)
|
|
python2 setup.py install --prefix=/usr --root="$pkgdir"
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
mv $pkgdir/usr/bin/pbr{,2}
|
|
}
|