summaryrefslogtreecommitdiff
path: root/pcr/python-pypi-magic/PKGBUILD
blob: b126ae6c1de4d328b38b27f43b0ac84167b442a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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