summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1cfae56c3cb5e05e665156f43592296f43bf5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Adrien Wu <adrien.sf.wu@gmail.com>
pkgname=python-pycld2
pkgver=0.41
pkgrel=4
pkgdesc="Python bindings for the Compact Langauge Detect 2 (CLD2)"
url="https://github.com/aboSamoor/pycld2"
arch=('i686' 'x86_64')
provides=('python-pycld2')
depends=('python')
makedepends=('python-setuptools')
_name="${pkgname#python-}"
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('a42f6e974df8fdd70685c2baa8a9f523069a260e1140ce604fb9f1fb6c3064df')

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

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