updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / google-sitemap-generator / PKGBUILD
blobfcec2a9164397dfdf87f966d229b0ad4faa55e71
1 # Google-SiteMap-Generator: Installer: Arch
2 # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
4 pkgname=google-sitemap-generator
5 filename=sitemap_gen
6 pkgver=1.5
7 pkgrel=1
8 pkgdesc="A Python script that creates a Sitemap for your site using the Sitemap Protocol"
9 arch=('i686' 'x86_64')
10 url="http://code.google.com/p/sitemap-generators/"
11 license=('custom')
12 depends=('python>=2.3')
13 makedepends=('python>=2.3')
14 options=(!emptydirs)
15 source=(http://sitemap-generators.googlecode.com/files/${filename}_${pkgver}.tar.gz)
16 md5sums=('98754e802722c0cc2ffcc8aedead67b6')
18 build() {
19         cd ${startdir}/src/
21         # Directories
22         install -d ${startdir}/pkg/usr/bin/
24         # Installation
25         python setup.py install --root=${startdir}/pkg || return 1
26         install -D ${filename}.py ${startdir}/pkg/usr/lib/python2.6/site-packages/${filename}/${filename}.py
27         ln -s /usr/lib/python2.6/site-packages/${filename}/${filename}.py ${startdir}/pkg/usr/bin/
29         # License
30         install -D COPYING ${startdir}/pkg/usr/share/licenses/${pkgname}/COPYING || return 1