4 pkgdesc="Python bindings to allow you to access the libmagic api"
6 url="http://darwinsys.com/file/"
8 depends=('file' 'python2')
9 source=(ftp://ftp.astron.com/pub/file/file-$pkgver.tar.gz)
10 md5sums=('4cea34b087b060772511e066e2038196')
13 cd $srcdir/file-$pkgver/python
14 sed -i 's#/usr/bin/python#/usr/bin/python2#' ../magic/Magdir/python
16 python2 setup.py build
17 mkdir -p $pkgdir/usr/lib/python2.7/lib-dynload
18 cp build/lib/magic.py $pkgdir/usr/lib/python2.7/lib-dynload/
19 install -D -m644 $srcdir/file-$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING