summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e312e36ab35b8991c4d1f6abd4a26271687cdbd2 (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
32
33
34
35
36
37
38
39
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Otto Sabart <seberm[at]seberm[dot]com>
# Contributor: Mizuchi <ytj000+AUR@gmail.com>
# Contributor: Veli-Jussi Raitila <vjr AT iki DOT fi>

pkgname=python-pysrt
pkgver=1.1.2
pkgrel=6
pkgdesc="Python parser for SubRip (srt) files"
arch=('any')
url="https://github.com/byroot/pysrt"
license=('GPL3')
depends=('python-chardet')
makedepends=('python-setuptools')
checkdepends=('python-nose')
source=("$pkgname-$pkgver.tar.gz::https://github.com/byroot/pysrt/archive/v$pkgver.tar.gz"
	"unittest-assert-alias-removed.patch")
sha512sums=('0d6b3a7ce4c8733221bfb5c3e434233d1b221fedda3c145fafe124093f1f9090b99c175e79de386717ec5f8b564c62719f377651db95a8d3c382e2bf8dccb0a8'
            'ff2df11cb4fdcaf20697ed390a056b320858a13793e1d33134d75ed76b8f476f90531fcc49a592787747fb7b44d818bdac2224d64b101a42a5ab4da4c9003858')

prepare() {
  cd pysrt-$pkgver
  patch -Np1 -i ${srcdir}/unittest-assert-alias-removed.patch	
}

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

check() {
  cd pysrt-$pkgver
  nosetests3
}

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