updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / scrapy-git / PKGBUILD
blob40b61876260d41d4f446c6f1586a0ba4e1b1c716
1 # Contributor: Anibal Pacheco <apacheco.uy@gmail.com>
2 pkgname="scrapy-git"
3 pkgver=20110925
4 pkgrel=1
5 pkgdesc="A fast high-level scraping and web crawling framework - development version."
6 arch=('i686' 'x86_64')
7 license=('BSD')
8 url="http://scrapy.org"
9 depends=('python2>=2.5' 'twisted>=2.5' 'libxml2>=2.6.28', 'python2-w3lib')
10 makedepends=('git')
11 optdepends=("pyopenssl: for HTTPS support. Optional, but highly recommended")
12 provides=('scrapy')
13 conflicts=('scrapy')
14 options=(!emptydirs)
16 _gitroot=https://github.com/scrapy/scrapy.git
17 _gitrepo=scrapy
19 build() {
20   cd ${srcdir}
22   if [ -d ${_gitrepo} ]; then
23     (cd ${_gitrepo} && git pull)
24   else
25     git clone ${_gitroot}
26     cd ${_gitrepo}
27   fi
29   # installation
30   cd $srcdir/$_gitrepo
31   python2 setup.py install --root=$pkgdir || return 1
33   # copying license information
34   install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
36   # copying readme information
37   install -D -m644 README $pkgdir/usr/share/doc/$pkgname/README
38   install -D -m644 INSTALL $pkgdir/usr/share/doc/$pkgname/INSTALL