diff options
author | Jameson Pugh | 2017-08-10 16:38:33 -0400 |
---|---|---|
committer | Jameson Pugh | 2017-08-10 16:38:33 -0400 |
commit | 2e7c72de713f0a5d10f525e2f2c7211914788dc1 (patch) | |
tree | cfb6c22bd5b9b4e869a57240901f09536a556d72 | |
download | aur-2e7c72de713f0a5d10f525e2f2c7211914788dc1.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..05c1ae920610 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by mksrcinfo v8 +# Thu Aug 10 20:38:20 UTC 2017 +pkgbase = python-identify + pkgdesc = File identification library for Python. + pkgver = 1.0.5 + pkgrel = 1 + url = https://github.com/chriskuehl/identify + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + options = !emptydirs + source = https://github.com/chriskuehl/identify/archive/v1.0.5.tar.gz + sha256sums = cfe1487d9fa28fdb59f52306b8465021864d1bb8b580d63f31e379ded3f2b21c + +pkgname = python-identify + pkgdesc = File identification library for Python. (python3 version) + depends = python + +pkgname = python2-identify + pkgdesc = File identification library for Python. (python2 version) + depends = python2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7c088c4c9f1b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jameson Pugh <imntreal@gmail.com> + +pkgbase=python-identify +pkgname=('python-identify' 'python2-identify') +pkgname=python-identify +pkgver=1.0.5 +pkgrel=1 +pkgdesc="File identification library for Python." +arch=(any) +url="https://github.com/chriskuehl/identify" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +options=(!emptydirs) +source=("https://github.com/chriskuehl/identify/archive/v${pkgver}.tar.gz") +sha256sums=('cfe1487d9fa28fdb59f52306b8465021864d1bb8b580d63f31e379ded3f2b21c') + +package_python2-identify() { + depends=('python2') + pkgdesc="File identification library for Python. (python2 version)" + + cd "${srcdir}/identify-${pkgver}" + python2 setup.py install --root="${pkgdir}/" --optimize=1 + + install -v -m755 -d "${pkgdir}/usr/share/doc/python2-identify" + install -v -m644 README.md "${pkgdir}/usr/share/doc/python2-identify/" +} + +package_python-identify() { + depends=('python') + pkgdesc="File identification library for Python. (python3 version)" + + cd "${srcdir}/identify-${pkgver}" + python setup.py install --root="${pkgdir}/" --optimize=1 + + install -v -m755 -d "${pkgdir}/usr/share/doc/python-identify" + install -v -m644 README.md "${pkgdir}/usr/share/doc/python-identify/" +} |