summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a41ca8e9efdb22ce9033bb56a66d42adc458d21 (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='python-sasl'
_pkgname=sasl
pkgver=0.2.1
pkgrel=1
pkgdesc='Python wrapper for Cyrus SASL' 
arch=('x86_64')
url='https://github.com/cloudera/python-sasl'
license=('Apache')
makedepends=('cython' 'python-setuptools')
depends=('gcc-libs' 'libsasl')
checkdepends=()
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('04f22e17bbebe0cd42471757a48c2c07126773c38741b1dad8d9fe724c16289d')

prepare() {
    cd "$_pkgname-$pkgver"
    sed -i '1i#cython: language_level=3' sasl/saslwrapper.pyx
    sed 's/\.cpp/.pyx/' -i setup.py
}

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

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