updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / podcastr-git / PKGBUILD
blobf7a35be774fce1e9e8bd7f971145bc198e90bf26
1 # Created by Richard Shaw <drowned.flame@gmail.com>
2 pkgname=podcastr-git
3 pkgver=20100729
4 pkgrel=1
5 pkgdesc="A Python podcast updater"
6 arch=('any')
7 url="http://github.com/openinja/podcastr"
8 license=('custom:MIT')
9 depends=('python' 'python-urljr' 'python-feedparser')
10 makedepends=('git')
11 backup=()
12 source=()
13 md5sums=() 
15 _gitroot="git://github.com/openinja/podcastr.git"
16 _gitname="podcastr"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
35   
36   mkdir -p $pkgdir/usr/bin
37   mkdir -p $pkgdir/usr/share/licenses/$pkgname
38   install -m755 podcastr $pkgdir/usr/bin
39   install LICENSE $pkgdir/usr/share/licenses/$pkgname
40   # For next version.
41   # install podcastr.conf $pkgdir/etc
42