updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / oyepa / PKGBUILD
blobbc2bc8390360b46bb1c10373b249f1ce91f2a571
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
3 pkgname=oyepa
4 pkgver=3.2
5 pkgrel=1
6 pkgdesc="A tagging file system emulator."
7 arch=('any')
8 url="http://pages.stern.nyu.edu/~marriaga/software/oyepa/"
9 license=('GPLv2')
10 depends=('python2-pyqt' 'python2-pyinotify')
11 optdepends=()
12 source=(http://pages.stern.nyu.edu/~marriaga/software/$pkgname/$pkgname-latest.tgz)
13 md5sums=('099777c8b0601bdaa6ff2e6ab4fcfe8c')
15 build() {
16   cd $pkgname-$pkgver
17   
18   # Oyepa normally uses install.sh to copy and link files.
19   # But it can't split between /usr/bin and /usr/share.
20   # So we do it by hand, here.
22   # Some .py files have no shebang?
23   sed -i 's|/usr/bin/env python|/usr/bin/env python2|' *.py
25   # Copy everything to /usr/share/oyepa/
26   install -d    "$pkgdir/usr/share/$pkgname/icons"
27   install *.py  "$pkgdir/usr/share/$pkgname"
28   install *.png "$pkgdir/usr/share/$pkgname"
29   install *O*   "$pkgdir/usr/share/$pkgname"
30   install *E*   "$pkgdir/usr/share/$pkgname"
31   install -Dm644 icons/* "$pkgdir/usr/share/$pkgname/icons"
32   chmod -x "$pkgdir"/usr/share/$pkgname/{CHANGE.LOG,COPYING,README,TODO}
33   # Create symlinks in /usr/bin/
34   install -d "$pkgdir/usr/bin"
35   ln -s /usr/share/$pkgname/oyepa.py         "/$pkgdir/usr/bin/oyepa"
36   ln -s /usr/share/$pkgname/oyepa-filemon.py "/$pkgdir/usr/bin/oyepa-filemon"
37   ln -s /usr/share/$pkgname/mp.py            "/$pkgdir/usr/bin/mp.py"
38   ln -s /usr/share/$pkgname/ds.py            "/$pkgdir/usr/bin/ds"
39   ln -s /usr/share/$pkgname/wnote.py         "/$pkgdir/usr/bin/wnote"
41   msg "Create the file ~/.oyepa/dirs with directories to watch.  See /usr/share/oyepa/README for more."