[arch-commits] Commit in python-mimeparse/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 24 17:40:45 UTC 2016
Date: Saturday, December 24, 2016 @ 17:40:44
Author: foutrelis
Revision: 201670
archrelease: copy trunk to community-staging-any
Added:
python-mimeparse/repos/community-staging-any/
python-mimeparse/repos/community-staging-any/PKGBUILD
(from rev 201669, python-mimeparse/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-mimeparse/repos/community-staging-any/PKGBUILD (from rev 201669, python-mimeparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 17:40:44 UTC (rev 201670)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-mimeparse
+pkgname=(python-mimeparse python2-mimeparse)
+pkgver=1.6.0
+pkgrel=2
+pkgdesc='Module of basic functions for parsing mime-type names and matching them against a list of media-ranges'
+arch=('any')
+url="https://github.com/dbtsai/python-mimeparse"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+source=("git+https://github.com/dbtsai/python-mimeparse#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a python-mimeparse{,-py2}
+}
+
+build() {
+ cd "$srcdir"/python-mimeparse
+ python setup.py build
+
+ cd "$srcdir"/python-mimeparse-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-mimeparse
+ python mimeparse_test.py
+
+ cd "$srcdir"/python-mimeparse-py2
+ python2 mimeparse_test.py
+}
+
+package_python-mimeparse() {
+ depends=('python')
+
+ cd python-mimeparse
+ python setup.py install -O1 --root "$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-mimeparse() {
+ depends=('python2')
+
+ cd python-mimeparse-py2
+ python2 setup.py install -O1 --root "$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list