30 lines
973 B
Bash
30 lines
973 B
Bash
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
# then please put 'unknown'.
|
|
|
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
|
pkgname=python-fastbencode
|
|
pkgver=0.2
|
|
pkgrel=1
|
|
pkgdesc="Implementation of bencode with optional fast C extensions"
|
|
arch=('x86_64')
|
|
url="https://github.com/breezy-team/fastbencode"
|
|
license=('GPL2')
|
|
depends=('python')
|
|
makedepends=('python-build' 'python-installer' 'python-cython' 'python-setuptools' 'python-wheel')
|
|
source=(https://pypi.io/packages/source/f/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz)
|
|
sha256sums=(578eb9c4700d6705d71fbc8d7d57bca2cd987eca2cec1d9e77b9e0702db1e56f)
|
|
|
|
build() {
|
|
cd ${pkgname#*-}-${pkgver}
|
|
|
|
python3 -m build --wheel --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname#*-}-${pkgver}
|
|
|
|
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
|
}
|