summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47ec1a024a16107827b094f68f445592f279962e (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: Éric Gillet <e+aur@linuxw.info>

_py_pkgname=pymp4
_github_url=https://github.com/beardypig/$_py_pkgname
pkgname=python-${_py_pkgname}
pkgver=1.2.0
pkgrel=1
pkgdesc="A Python MP4 Parser and toolkit"
arch=(any)
url="https://github.com/beardypig/pymp4"
license=('Apache') #2.0
depends=(python 'python-construct=2.8.8')
makedepends=(git python-setuptools)
checkdepends=(python-pytest python-wheel)
source=(${_py_pkgname}::git+${_github_url}.git#tag=$pkgver)
md5sums=('SKIP')

build() {
    cd "${srcdir}/${_py_pkgname}"
    python setup.py build
}

check() {
    cd "${srcdir}/${_py_pkgname}"
    python setup.py test
}

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