mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 01:24:37 +08:00
50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
# $Id$
|
|
# Maintainer: Thomas Dziedzic < gostrc at gmail >
|
|
# Contributor: Pierre Chapuis <catwell at archlinux dot us>
|
|
|
|
pkgname=('python3-decorator' 'python2-decorator')
|
|
pkgver=3.4.0
|
|
pkgrel=1
|
|
pkgdesc='Python Decorator module'
|
|
arch=('any')
|
|
url='http://pypi.python.org/pypi/decorator'
|
|
license=('BSD')
|
|
makedepends=('python2' 'python' 'python3-setuptools')
|
|
source=("http://pypi.python.org/packages/source/d/decorator/decorator-${pkgver}.tar.gz"
|
|
'LICENSE.txt')
|
|
md5sums=('1e8756f719d746e2fc0dd28b41251356'
|
|
'0ca76d2c707f09dbb04acc425ea1a08b')
|
|
|
|
build() {
|
|
# Make python and python2 builds possible
|
|
cp -r decorator-$pkgver decorator2-$pkgver
|
|
|
|
cd "$srcdir/decorator-$pkgver"
|
|
|
|
python3 setup.py build
|
|
|
|
cd "$srcdir/decorator2-$pkgver"
|
|
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python2-decorator() {
|
|
depends=('python2')
|
|
replaces=('python3-decorator<=3.3.2-1')
|
|
cd "${srcdir}/decorator2-${pkgver}"
|
|
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
|
|
install -D -m644 "${srcdir}/LICENSE.txt" \
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
package_python3-decorator() {
|
|
depends=('python')
|
|
cd "${srcdir}/decorator-${pkgver}"
|
|
|
|
python3 setup.py install --root="${pkgdir}" --optimize=1
|
|
|
|
install -D -m644 "${srcdir}/LICENSE.txt" \
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|