updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / zeitgeist-datasources / PKGBUILD
blobf4b08a51f547ce2dbc196ef7f0c8e823d45f1c2d
1 # Maintainer: Alexander De Sousa <archaur.xandy21@spamgourmet.com>
3 pkgname="zeitgeist-datasources"
4 pkgdesc="Zeitgeist data provider plugins or extensions for several programs."
5 pkgver=0.8.0.1
6 pkgrel=1
7 arch=('i686' 'x86_64')
8 url="https://launchpad.net/zeitgeist-datasources"
9 license=('GPL3' 'LGPL3')
10 depends=('libzeitgeist' 'zeitgeist')
11 conflicts=('zeitgeist-datasources-bzr' 'zeitgeist-dataprovider-firefox')
12 source=(http://launchpad.net/$pkgname/${pkgver%.*.*}/${pkgver%.*}/+download/$pkgname-$pkgver.tar.gz)
13 md5sums=("67874e8f56f95f71a5af995dbe779e09")
14 sha1sums=("88392b2233932bee38623620ba9abf1e63bc61bb")
16 build() {
17         cd "$srcdir/$pkgname-$pkgver"
18         ./configure
19         make
22 package() {
23         cd "$srcdir/$pkgname-$pkgver"
24         make DESTDIR="$pkgdir" install
25         
26         # Move the Chrome extension to the default directory (if it was built):
27         if [ -e "$pkgdir/usr/share/opt/google/chrome/resources" ]; then
28                 install -dm755 "$pkgdir/usr/lib/chromium"
29                 mv "$pkgdir/usr/share/opt/google/chrome/resources" \
30                         "$pkgdir/usr/lib/chromium"
31                 rm -fr "$pkgdir/usr/share/opt/"
32                 # Those using Chrome instead of Chromium may uncomment these lines:
33                 #install -dm755 "$pkgdir/opt/chrome/resources"
34                 #ln -s /usr/share/opt/google/chrome/resources/zeitgeist_plugin \
35                         #"$pkgdir/opt/chrome/resources"
36         fi
38         # Do the same for the Bazaar plugin:
39         if [ -e "$pkgdir/usr/share/pyshared/bzrlib/" ]; then
40                 install -dm755 "$pkgdir/usr/lib/python2.7/site-packages/"
41                 mv "$pkgdir/usr/share/pyshared/bzrlib/" \
42                         "$pkgdir/usr/lib/python2.7/site-packages/"
43                 rm -fr "$pkgdir/usr/share/pyshared/bzrlib/"
44         fi
46         # Remove the Vim plugin, unfortunately the Python interpreter is disabled in
47         # our vim package (although not in the gvim one):
48         if [ -e "$pkgdir/usr/share/vim/vim72" ]; then
49                 rm -fr "$pkgdir/usr/share/vim/"
50                 #mv "$pkgdir/usr/share/vim/vim72" "$pkgdir/usr/share/vim/vim73"
51         fi
54 # vim: set ft=sh ts=3 sw=3 tw=0: