summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2b811faf3c849a439c62014cfe0568d5e169098 (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
# Maintainer: Buce <dmbuce@gmail.com>
pkgname=python-transliterate
pkgver=1.10.2
pkgrel=2
pkgdesc="Bi-directional transliterator for Python"
arch=('any')
url="https://pypi.org/project/transliterate/"
license=('GPL2' 'LGPL2.1')
depends=(python)
makedepends=()
#checkdepends=()
optdepends=()
provides=()
conflicts=()
backup=()
install=
_name=${pkgname#python-}
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('bc608e0d48e687db9c2b1d7ea7c381afe0d1849cad216087d8e03d8d06a57c85')

package() {
  local site_packages=$(python -c "import site; print(site.getsitepackages()[0].lstrip('/'))")
  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps "$_name"
  python -O -m compileall "$pkgdir/$site_packages/$_name"
  rm -rf "$pkgdir/$site_packages/$_name/tests"
}

# vim:set ts=2 sw=2 et: