30 lines
929 B
Bash
30 lines
929 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-idna
|
|
pkgver=3.6
|
|
pkgrel=1
|
|
pkgdesc="Internationalized Domain Names in Applications (IDNA)"
|
|
arch=('x86_64')
|
|
url="https://github.com/kjd/idna"
|
|
license=('BSD')
|
|
depends=('python')
|
|
makedepends=('python-build' 'python-installer' 'python-flit-core')
|
|
source=(https://files.pythonhosted.org/packages/source/i/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz)
|
|
sha256sums=(9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca)
|
|
|
|
build() {
|
|
cd ${pkgname#*-}-${pkgver}
|
|
|
|
python3 -m build --wheel --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname#*-}-${pkgver}
|
|
|
|
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
|
}
|