Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <josh@jpellis.me>
  • Loading branch information
JP-Ellis committed Nov 14, 2018
0 parents commit e6e1b8a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by mksrcinfo v8
# Wed Nov 14 00:47:59 UTC 2018
pkgbase = python-filetype
pkgdesc = Small and dependency free Python package to infer file type and MIME type checking the magic numbers signature of a file or buffer.
pkgver = 1.0.1
pkgrel = 1
url = https://pypi.org/project/filetype/
arch = any
license = GPL
makedepends = python-setuptools
depends = python
source = https://files.pythonhosted.org/packages/source/f/filetype/filetype-1.0.1.tar.gz
sha256sums = 97b4ec0974b07cbddb3e74cf323d8688749807014055cc91cdbfef5442a94dc5

pkgname = python-filetype

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.tar.gz
28 changes: 28 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Maintainer: JP-Ellis <josh@jpellis.me>
pkgname=python-filetype
_name=${pkgname#python-}
pkgver=1.0.1
pkgrel=1
pkgdesc="Small and dependency free Python package to infer file type and MIME type checking the magic numbers signature of a file or buffer."
arch=('any')
url="https://pypi.org/project/filetype/"
license=('GPL')
depends=('python')
makedepends=('python-setuptools')
optdepends=()
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('97b4ec0974b07cbddb3e74cf323d8688749807014055cc91cdbfef5442a94dc5')
noextract=()

build() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py build
touch Changelog.rst
}

package() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}

# vim:set ts=2 sw=2 et:

0 comments on commit e6e1b8a

Please sign in to comment.