Skip to content

Commit

Permalink
Add 'python-filetype/' from commit '725732d0eb73f2200a6f55ac8b4917756…
Browse files Browse the repository at this point in the history
…01bd9d2'

git-subtree-dir: python-filetype
git-subtree-mainline: 1a60af2
git-subtree-split: 725732d
  • Loading branch information
mutantmonkey committed Oct 22, 2024
2 parents 1a60af2 + 725732d commit 4098074
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python-filetype/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pkgbase = python-filetype
pkgdesc = Infer file type and MIME type of any file/buffer
pkgver = 1.2.0
pkgrel = 3
url = https://github.com/h2non/filetype.py
arch = any
license = MIT
makedepends = python-setuptools
depends = python
source = https://github.com/h2non/filetype.py/archive/v1.2.0/python-filetype-1.2.0.tar.gz
sha512sums = e6116dd5505c01803c29016a8e85ce3f126c998f882eb1cfa8ff67990f560fee486d06b27dc64dbd74490f5d0f0327a9af0074e9cf1e16d3d55e71eeb2575c75

pkgname = python-filetype
1 change: 1 addition & 0 deletions python-filetype/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.tar.gz
31 changes: 31 additions & 0 deletions python-filetype/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: JP-Ellis <josh@jpellis.me>

pkgname=python-filetype
pkgver=1.2.0
pkgrel=3
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/
}

0 comments on commit 4098074

Please sign in to comment.