# Description: Yet another URL library
# URL: https://github.com/aio-libs/yarl/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-idna python3-multidict python3-typing_extensions

name=python3-yarl
version=1.9.2
release=1
source=(https://github.com/aio-libs/yarl/archive/v$version/$name-$version.tar.gz)

build() {
  cd yarl-$version
  sed -e 's| .install-cython ||g' \
    -e 's|python|python3|g' -i Makefile
  PYTHON="/usr/bin/python3" \
  make cythonize
  /usr/bin/python3 setup.py build
  /usr/bin/python3 setup.py install --prefix=/usr \
    -O1 \
    --root=$PKG \
    --skip-build
}
