summaryrefslogtreecommitdiff
path: root/pcr/python-pypi-magic/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-03-05 13:29:08 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-03-05 13:29:34 +0100
commitf33401dbca698b90b3e567f8fbb7a6a1a12b6173 (patch)
tree12eeba48b0dea4e6cead2b72006a96fb7cb3d2ed /pcr/python-pypi-magic/PKGBUILD
parent7ecfe3c9184e9abc3a2d9118190af415f95f8b50 (diff)
downloadabslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.tar.gz
abslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.tar.bz2
abslibre-f33401dbca698b90b3e567f8fbb7a6a1a12b6173.zip
pcr/papis: added, plus dependencies
Diffstat (limited to 'pcr/python-pypi-magic/PKGBUILD')
-rw-r--r--pcr/python-pypi-magic/PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/python-pypi-magic/PKGBUILD b/pcr/python-pypi-magic/PKGBUILD
new file mode 100644
index 000000000..b126ae6c1
--- /dev/null
+++ b/pcr/python-pypi-magic/PKGBUILD
@@ -0,0 +1,22 @@
+
+_pkgname=magic
+pkgname=(python-pypi-$_pkgname python2-pypi-$_pkgname)
+pkgver=0.4.15
+pkgrel=1
+pkgdesc="File type identification using libmagic"
+arch=('any')
+url='https://pypi.python.org/pypi/python-magic/'
+makedepends=('python-setuptools' 'python2-setuptools')
+license=('MIT')
+source=("https://pypi.python.org/packages/84/30/80932401906eaf787f2e9bd86dc458f1d2e75b064b4c187341f29516945c/python-magic-$pkgver.tar.gz")
+md5sums=('e384c95a47218f66c6501cd6dd45ff59')
+
+_package(){
+ depends=($1)
+ cd "$srcdir"/python-magic-$pkgver
+ $1 setup.py install --root="$pkgdir"
+}
+
+for pkg in "${pkgname[@]}"; do
+ eval "package_$pkg () { _package ${pkg%%-*}; }"
+done