diff options
author | Donald Webster | 2021-09-17 17:44:28 -0700 |
---|---|---|
committer | Donald Webster | 2021-09-17 17:44:28 -0700 |
commit | 8d39e9394a0ba1ad72d5c412142bf3c8b5178b0a (patch) | |
tree | 96764673e3f27c9c881d7d0a80c1b33525808a21 | |
download | aur-8d39e9394a0ba1ad72d5c412142bf3c8b5178b0a.tar.gz |
Initial version of python-puremagic package.
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 20 |
3 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9d4576a50c62 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = python-puremagic + pkgdesc = A Python python module that will identify a file based off it’s magic numbers. + pkgver = 1.10 + pkgrel = 1 + url = https://github.com/cdgriffith/puremagic + arch = any + license = MIT + makedepends = python-setuptools + depends = python + source = https://files.pythonhosted.org/packages/source/p/puremagic/puremagic-1.10.tar.gz + sha512sums = fcbd9513c290e7a4ae65795fbd9b787f54ad6b1a1e27d16dec999c90614b534c46d121216869490838a91abd3fe4d758561474000ad37f379305ab19bf75d58b + +pkgname = python-puremagic diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6e570bc49abe --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.xz +*.gz +*.log +/src/ +/pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cd6765904072 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Alex Brinister <alex_brinister at yahoo dot com> + +pkgbase=python-puremagic +pkgname='python-puremagic' +_name=puremagic +pkgver=1.10 +pkgrel=1 +pkgdesc="A Python python module that will identify a file based off it’s magic numbers." +arch=('any') +url="https://github.com/cdgriffith/puremagic" +license=(MIT) +depends=('python') +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") +sha512sums=('fcbd9513c290e7a4ae65795fbd9b787f54ad6b1a1e27d16dec999c90614b534c46d121216869490838a91abd3fe4d758561474000ad37f379305ab19bf75d58b') + +package() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 +} |