[arch-commits] Commit in python-ass/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Dec 10 07:04:14 UTC 2016


    Date: Saturday, December 10, 2016 @ 07:04:13
  Author: felixonmars
Revision: 198685

archrelease: copy trunk to community-any

Added:
  python-ass/repos/community-any/
  python-ass/repos/community-any/PKGBUILD
    (from rev 198684, python-ass/trunk/PKGBUILD)

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

Copied: python-ass/repos/community-any/PKGBUILD (from rev 198684, python-ass/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-12-10 07:04:13 UTC (rev 198685)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgbase=python-ass
+pkgname=('python-ass' 'python2-ass')
+pkgver=0.4.2
+_commit=c8ffa0b1008c2b2262a2ee7c0f8881f0201a4c8d
+pkgrel=1
+pkgdesc='A library for parsing and manipulating Advanced SubStation Alpha subtitle files.'
+arch=('any')
+url='http://github.com/rfw/python-ass'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+source=("git+https://github.com/rfw/python-ass.git#commit=$_commit")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a python-ass{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-ass
+  python setup.py build
+
+  cd "$srcdir"/python-ass-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-ass
+  python test.py
+
+  cd "$srcdir"/python-ass-py2
+  python2 test.py
+}
+
+package_python-ass() {
+  depends=('python-setuptools')
+
+  cd python-ass
+  python setup.py install --root="$pkgdir" -O1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-ass() {
+  depends=('python2-setuptools')
+
+  cd python-ass-py2
+  python2 setup.py install --root="$pkgdir" -O1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list