Date: Thursday, April 6, 2023 @ 16:12:26
Author: felixonmars
Revision: 1439559
archrelease: copy trunk to community-staging-any
Added:
python-filetype/repos/community-staging-any/
python-filetype/repos/community-staging-any/PKGBUILD
(from rev 1439556, python-filetype/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: python-filetype/repos/community-staging-any/PKGBUILD (from rev 1439556,
python-filetype/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 16:12:26 UTC (rev 1439559)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-filetype
+pkgver=1.2.0
+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=('e6116dd5505c01803c29016a8e85ce3f126c998f882eb1cfa8ff67990f560fee486d06b27dc64dbd74490f5d0f0327a9af0074e9cf1e16d3d55e71eeb2575c75')
+
+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/
+}