[arch-commits] Commit in python-pysrt/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 14:38:35 UTC 2015
Date: Saturday, September 19, 2015 @ 16:38:35
Author: fyan
Revision: 140876
archrelease: copy trunk to community-staging-any
Added:
python-pysrt/repos/community-staging-any/
python-pysrt/repos/community-staging-any/PKGBUILD
(from rev 140875, python-pysrt/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-pysrt/repos/community-staging-any/PKGBUILD (from rev 140875, python-pysrt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 14:38:35 UTC (rev 140876)
@@ -0,0 +1,37 @@
+# $Id$
+# 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>
+
+pkgbase=python-pysrt
+pkgname=(python-pysrt python2-pysrt)
+pkgver=1.0.1
+pkgrel=3
+pkgdesc="Python parser for SubRip (srt) files"
+arch=('any')
+url="https://github.com/byroot/pysrt"
+license=('GPL3')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-chardet' 'python2-chardet')
+source=("https://pypi.python.org/packages/source/p/pysrt/pysrt-${pkgver}.tar.gz")
+md5sums=('2ba064c33026bac4b528063f67bd8ebc')
+
+prepare() {
+ cp -a pysrt-$pkgver{,-py2}
+}
+
+package_python-pysrt() {
+ depends=('python-chardet')
+
+ cd pysrt-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pysrt() {
+ depends=('python2-chardet')
+
+ cd pysrt-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir/usr/bin/srt"{,2}
+}
More information about the arch-commits
mailing list