updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / rawdog-darcs / PKGBUILD
blobb9cf1cca96aa11f86d5913b4caf7ec6d3bf35f18
1 # Contributor: Andreas B. Wagner <AndreasBWagner@pointfree.net>
2 pkgname=rawdog-darcs
3 pkgver=20101123
4 pkgrel=1
5 pkgdesc="RSS Aggregator Without Delusions Of Grandeur"
6 arch=('any')
7 url="http://offog.org/code/rawdog.html"
8 license=('GPL' 'LGPL')
9 depends=('python2')
10 makedepends=('darcs')
11 provides=('rawdog')
12 conflicts=('rawdog')
13 install=$pkgname.install
15 _darcstrunk="http://offog.org/darcs"
16 _darcsmod="rawdog"
18 build() {
19         cd "$srcdir"
21         msg "Checking for previous build"
23         if [[ -d $_darcsmod/_darcs ]]
24         then
25                 msg "Retrieving missing patches"
26                 cd $_darcsmod
27                 darcs pull -a $_darcstrunk/$_darcsmod
28         else
29                 msg "Retrieving complete sources"
30                 darcs get --partial --set-scripts-executable $_darcstrunk/$_darcsmod
31                 cd $_darcsmod
32         fi
34         rm -rf "$srcdir/$_darcsmod-build"
35         cp -r "$srcdir/$_darcsmod" "$srcdir/$_darcsmod-build"
36         cd "$srcdir/$_darcsmod-build"
38         msg "Starting build"
40         # BUILD
41         cd "$srcdir/$_darcsmod-build"
42         python2 setup.py build
45 package() {
46         cd "$srcdir/$_darcsmod-build"
47         python2 setup.py install --prefix=/usr --root="$pkgdir"
48         install -Dm644 config "$pkgdir/usr/share/$pkgname/config"
49         install -Dm644 style.css "$pkgdir/usr/share/$pkgname/style.css"