mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:47:16 +08:00
57 lines
1.5 KiB
Bash
57 lines
1.5 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakraos.org
|
|
#
|
|
|
|
pkgbase=python-characteristic
|
|
pkgname=('python3-characteristic' 'python2-characteristic')
|
|
pkgver=14.1.0
|
|
pkgrel=2
|
|
pkgdesc="Service identity verification for pyOpenSSL"
|
|
arch=('any')
|
|
license=('MIT')
|
|
url="http://pypi.python.org/pypi/characteristic"
|
|
makedepends=('python3-setuptools' 'python2-setuptools')
|
|
#checkdepends=('python3-pytest' 'python2-pytest')
|
|
source=("http://pypi.python.org/packages/source/c/characteristic/characteristic-${pkgver}.tar.gz")
|
|
md5sums=('68ea7e28997fc57d3631791ec0567a05')
|
|
|
|
prepare() {
|
|
cp -a characteristic-${pkgver}{,-python2}
|
|
}
|
|
|
|
build() {
|
|
# Build python 3 module
|
|
cd characteristic-${pkgver}
|
|
python3 setup.py build
|
|
|
|
# Build python 2 module
|
|
cd ../characteristic-${pkgver}-python2
|
|
python2 setup.py build
|
|
}
|
|
|
|
#check() {
|
|
# # Check python3 module
|
|
# cd "${srcdir}"/characteristic-${pkgver}
|
|
# python -Walways setup.py test
|
|
#
|
|
# # Check python2 module
|
|
# cd "${srcdir}"/characteristic-${pkgver}-python2
|
|
# python2 -Walways setup.py test
|
|
#}
|
|
|
|
package_python3-characteristic() {
|
|
depends=('python3')
|
|
|
|
cd characteristic-${pkgver}
|
|
python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
package_python2-characteristic() {
|
|
depends=('python2')
|
|
|
|
cd characteristic-${pkgver}-python2
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|