updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / alan-bzr / PKGBUILD
blob617532969de73754b96e7952cc87284276d07d82
1 # Contributor: SanskritFritz (gmail)
3 pkgname=alan-bzr
4 pkgver=74
5 pkgrel=2
6 pkgdesc="Openbox menu framework. Comes by default with Semplice linux distribution."
7 arch=('i686' 'x86_64')
8 url=https://launchpad.net/alan
9 license=('GPL')
10 depends=('python2' 'gnome-menus2')
11 optdepends=()
12 makedepends=('bzr')
13 provides=('alan')
14 conflicts=('alan')
15 backup=('etc/alan/tree.conf')
16 source=()
17 md5sums=()
18 install=alan.install
20 _pkgname=alan
22 _bzrtrunk="lp:alan"
23 _bzrmod=$_pkgname
25 _bzrlaiv_setup="lp:~semplice-devs/semplice/laiv-setup"
27 build() {
28         cd "$srcdir"
29         if [ ! -d ./$_pkgname ]; then
30                 bzr co $_bzrtrunk $_bzrmod
31         else
32                 bzr up $_bzrmod
33         fi
35         if [ ! -d ./laiv_setup ]; then
36                 bzr co $_bzrlaiv_setup laiv_setup
37         else
38                 bzr up laiv_setup
39         fi
41         cd "$srcdir/$_pkgname"
42         python2 setup.py build
46 package() {
47         cd $srcdir/$_pkgname
48         python2 setup.py install --root "$pkgdir"
50         install -dm755 "$pkgdir/usr/bin"
51         ln -s "/usr/share/alan/alan-gentree.py" "$pkgdir/usr/bin/alan-gentree"
52         ln -s "/usr/share/alan/alan-show-extension.py" "$pkgdir/usr/bin/alan-show-extension"
54         install -Dm755 "$srcdir/laiv_setup/t9n/library.py" "$pkgdir/usr/lib/python2.7/site-packages/t9n/library.py"
55         install -Dm755 "$srcdir/laiv_setup/t9n/__init__.py" "$pkgdir/usr/lib/python2.7/site-packages/t9n/__init__.py"