blob: fc3043071876b21f93f06adb6bbe4053ea276fdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Nissar Chababy <contact at funilrys dot com>
pkgname=domain2idna
_name=${pkgname#}
pkgver=1.12.0
pkgrel=3
pkgdesc="The tool to convert a domain or a file with a list of domain to the famous IDNA format."
arch=('any')
url="https://github.com/funilrys/domain2idna"
license=('MIT')
depends=(
'python3'
'python-distribute'
'python-setuptools'
'python-colorama'
)
source=(
"https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
"https://raw.githubusercontent.com/PyFunceble/domain2idna/master/LICENSE"
)
sha256sums=('7f45b4de5ae261b23270b7f980c2600cd306fa570d4ade9e5935f965327bba2d'
'87fb21807b1c4f1d32217ef2be569be5cf8c16cecac5fd34eecbc07810881583')
build() {
cd ${srcdir}/${_name}-${pkgver}
python setup.py build
}
package() {
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd ${srcdir}/${_name}-${pkgver}
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}
|