summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45bb9ccc1946c21fa0e6e30bf341d8084ac6eff2 (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
# Maintainer: loukii
pkgname=python-pangu
pkgver="4.0.6.1"
pkgrel=2
arch=('any')

url='https://github.com/vinta/pangu.py'
pkgdesc='Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).'
license=('MIT')

_name=${pkgname#python-}

source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")

sha256sums=('f799d127709fe5ecff5d476945ac63d4be758b7bda02efb95715f1dc24472a2f')

depends=()

makedepends=('python-setuptools')

build() {
  cd "$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$_name-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}