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

Felix Yan felixonmars at archlinux.org
Fri Oct 23 13:09:56 UTC 2020


    Date: Friday, October 23, 2020 @ 13:09:55
  Author: felixonmars
Revision: 730669

archrelease: copy trunk to community-any

Added:
  python-filetype/repos/community-any/
  python-filetype/repos/community-any/PKGBUILD
    (from rev 730668, python-filetype/trunk/PKGBUILD)

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

Copied: python-filetype/repos/community-any/PKGBUILD (from rev 730668, python-filetype/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-10-23 13:09:55 UTC (rev 730669)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-filetype
+pkgver=1.0.7
+pkgrel=1
+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