updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / scrapy-hg / PKGBUILD
blob08508fe77a0f9e661857338498b7c14d08693739
1 # Contributor: Anibal Pacheco <apacheco.uy@gmail.com>
2 pkgname="scrapy-hg"
3 pkgver=2495
4 pkgrel=4
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')
10 makedepends=('mercurial')
11 optdepends=("pyopenssl: only if you want to crawl secure (HTTPS) pages")
12 provides=('scrapy')
13 conflicts=('scrapy')
14 options=(!emptydirs)
16 _hgroot=http://hg.scrapy.org/
17 _hgrepo=scrapy
19 build() {
20   cd ${srcdir}
22   if [ -d ${_hgrepo} ]; then
23     (cd ${_hgrepo} && hg pull -u)
24   else
25     hg clone ${_hgroot}/${_hgrepo}
26     cd ${_hgrepo}
27   fi
29   # installation
30   cd $srcdir/$_hgrepo
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