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