[arch-commits] Commit in python-filetype/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 04:15:27 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:15:27
Author: felixonmars
Revision: 748599
archrelease: copy trunk to community-staging-any
Added:
python-filetype/repos/community-staging-any/
python-filetype/repos/community-staging-any/PKGBUILD
(from rev 748598, python-filetype/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-filetype/repos/community-staging-any/PKGBUILD (from rev 748598, python-filetype/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:15:27 UTC (rev 748599)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-filetype
+pkgver=1.0.7
+pkgrel=2
+pkgdesc="Infer file type and MIME type of any file/buffer"
+url="https://github.com/h2non/filetype.py"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://github.com/h2non/filetype.py/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('f6d861a9108ffb796858bfdfb26d1bdf6aa9704794fa86340cc36a2920b4f11e12faf4271d19bca9a89be76d8fcff43e8859c8def2525ddbadd52a18c7f68cac')
+
+build() {
+ cd filetype.py-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd filetype.py-$pkgver
+ python -m unittest discover
+}
+
+package() {
+ cd filetype.py-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list