[arch-commits] Commit in python-pysrt/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 19:37:07 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:37:07
  Author: felixonmars
Revision: 753553

archrelease: copy trunk to community-staging-any

Added:
  python-pysrt/repos/community-staging-any/
  python-pysrt/repos/community-staging-any/PKGBUILD
    (from rev 753550, python-pysrt/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-pysrt/repos/community-staging-any/PKGBUILD (from rev 753550, python-pysrt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 19:37:07 UTC (rev 753553)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Otto Sabart <seberm[at]seberm[dot]com>
+# Contributor: Mizuchi <ytj000+AUR at gmail.com>
+# Contributor: Veli-Jussi Raitila <vjr AT iki DOT fi>
+
+pkgname=python-pysrt
+pkgver=1.1.2
+pkgrel=2
+pkgdesc="Python parser for SubRip (srt) files"
+arch=('any')
+url="https://github.com/byroot/pysrt"
+license=('GPL3')
+depends=('python-chardet')
+optdepends=('python-setuptools: for srt script')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/byroot/pysrt/archive/v$pkgver.tar.gz")
+sha512sums=('0d6b3a7ce4c8733221bfb5c3e434233d1b221fedda3c145fafe124093f1f9090b99c175e79de386717ec5f8b564c62719f377651db95a8d3c382e2bf8dccb0a8')
+
+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
+}



More information about the arch-commits mailing list