tAPKBUILD - paraports - parazyd's aports (HTM) git clone https://git.parazyd.org/paraports (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- tAPKBUILD (1249B) --- 1 # Maintainer: Ivan J. <parazyd@dyne.org> 2 pkgname=py-guessit 3 _pkgname=guessit 4 pkgver=3.0.0 5 pkgrel=0 6 pkgdesc="Python library for guessing information from video filenames" 7 url="https://github.com/guessit-io/guessit" 8 arch="noarch" 9 license="LGPL-3" 10 _py2_deps="py2-babelfish py2-rebulk py2-dateutil py2-yaml py2-six" 11 _py3_deps="py3-babelfish py3-rebulk py3-dateutil py3-yaml py3-six" 12 makedepends="$_py2_deps $_py3_deps python2-dev python3-dev py-setuptools" 13 subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" 14 source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" 15 builddir="$srcdir/$_pkgname-$pkgver" 16 17 build() { 18 cd "$builddir" 19 20 python2 setup.py build || return 1 21 python3 setup.py build || return 1 22 } 23 24 package() { 25 mkdir -p "$pkgdir" 26 } 27 28 _py2() { 29 replaces="$pkgname" 30 _py python2 31 } 32 33 _py3() { 34 _py python3 35 } 36 37 _py() { 38 local python="$1" 39 pkgdesc="$pkgdesc (for $python)" 40 depends="$depends $python" 41 install_if="$pkgname=$pkgver-r$pkgrel $python" 42 43 cd "$builddir" 44 $python setup.py install --prefix=/usr --root="$subpkgdir" 45 } 46 47 sha512sums="87f19dc1c6b4f46fa1f2682f7c3bab91cf094df06904b8d9771159f346612b9d0adef4aef55315dd00d07787319d17008e936b125941abba5b869df6a91cb1c6 guessit-3.0.0.tar.gz"