[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Sat Dec 10 07:03:40 UTC 2016
Date: Saturday, December 10, 2016 @ 07:03:39
Author: felixonmars
Revision: 198684
addpkg: python-ass 0.4.2-1
Added:
python-ass/
python-ass/repos/
python-ass/trunk/
python-ass/trunk/PKGBUILD
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Added: python-ass/trunk/PKGBUILD
===================================================================
--- python-ass/trunk/PKGBUILD (rev 0)
+++ python-ass/trunk/PKGBUILD 2016-12-10 07:03:39 UTC (rev 198684)
@@ -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
+}
Property changes on: python-ass/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list