[arch-commits] Commit in (4 files)

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


    Date: Friday, October 23, 2020 @ 13:09:45
  Author: felixonmars
Revision: 730668

addpkg: python-filetype 1.0.7-1

Added:
  python-filetype/
  python-filetype/repos/
  python-filetype/trunk/
  python-filetype/trunk/PKGBUILD

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

Added: python-filetype/trunk/PKGBUILD
===================================================================
--- python-filetype/trunk/PKGBUILD	                        (rev 0)
+++ python-filetype/trunk/PKGBUILD	2020-10-23 13:09:45 UTC (rev 730668)
@@ -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