[arch-commits] Commit in python-mimeparse/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Mon Mar 16 17:53:08 UTC 2020
Date: Monday, March 16, 2020 @ 17:53:08
Author: bgyorgy
Revision: 599830
upgpkg: python-mimeparse 1.6.0-6: Remove python2 support
Modified:
python-mimeparse/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++-------------------------
1 file changed, 5 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-16 17:43:07 UTC (rev 599829)
+++ PKGBUILD 2020-03-16 17:53:08 UTC (rev 599830)
@@ -1,49 +1,29 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-mimeparse
-pkgname=(python-mimeparse python2-mimeparse)
+pkgname=python-mimeparse
pkgver=1.6.0
-pkgrel=5
+pkgrel=6
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')
+depends=('python')
+makedepends=('python-setuptools' 'git')
source=("git+https://github.com/dbtsai/python-mimeparse#tag=$pkgver")
sha512sums=('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')
-
+package() {
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