You are not logged in.

#1 2011-02-04 21:38:52

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

[Request] Plank, from Elementary team

Hello, the Elementary team which makes a lot of programs lately has started working on plank. It's docky, simplified, and written in vala. As I've seen their slingshot-bzr launcher on the AUR, but not plank, I was hoping someone could put Plank in the AUR. If anyone can do this, you have my gratitude!
The launchpad area for it (not in a Ubuntu ppa yet since it's in development) is: https://code.launchpad.net/~docky-core/plank/trunk

Offline

#2 2011-02-17 23:25:13

dcc24
Member
Registered: 2009-10-31
Posts: 732

Re: [Request] Plank, from Elementary team

Here's the PKGBUILD for the latest bzr revision. Note that this DOES NOT work! This latest revision is broken, and even if it were fixed, the PKBUILD still needs some sed magic to make the Makefile Arch-compatible. I've started it and I'd like to complete it, but first we need a bzr revision that actually compiles.

AUR page: http://aur.archlinux.org/packages.php?ID=46610

pkgname=plank-bzr
_name=plank
pkgver=235
pkgrel=1
pkgdesc="Stupidly simple dock."
arch=('i686' 'x86_64')
url="https://launchpad.net/nautilus-elementary"
license=('GPL')
groups=('gnome')
depends=('vala')
makedepends=('bzr')
provides=(${_name}=0.1)
conflicts=(${_name})
replaces=(${_name})
options=('!libtool' '!emptydirs')
install=${pkgname}.install

_bzrtrunk=lp:${_name}
_bzrmod=${_name}

build() {
  cd ${srcdir}

  msg "Connecting to the server...."

  if [ -d ${_bzrmod} ]; then
    bzr up ${_bzrmod}
    msg "The local files are updated."
  else
    bzr co ${_bzrtrunk} ${_bzrmod}
  fi

  msg "BZR checkout done or server timeout"
  msg "Starting make..."
  
  cd ${_name}
  ./autogen.sh
  ./configure
  
  sed -i 's|prefix = /usr/local|prefix = /usr|' Makefile
  
  make
}

package() {
  
  make install DESTDIR=$pkgdir
  
}

Last edited by dcc24 (2011-02-17 23:29:40)


It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)

My AUR packages

Offline

#3 2011-02-18 01:38:35

Japanlinux
Member
Registered: 2010-05-18
Posts: 173

Re: [Request] Plank, from Elementary team

Interesting. What is it that stops if from working? Is there some porting-related issue in trying to get it to work like docky sans mono?

Offline

#4 2011-02-18 14:01:24

dcc24
Member
Registered: 2009-10-31
Posts: 732

Re: [Request] Plank, from Elementary team

First of all the makefile doesn't support standard parameters like "--prefix" or "DESTDIR" so the only way to make it obey the Arch directory structure is some sed magic.

Even if we ignore that for now, the build still fails with:

plank-0.1.0

  Build Environment
    Install Prefix:     /usr/local
      Use GTK+ API:     2.0

  Build/Development
    Release Build:      no

Making all in Plank
  VALAC DockItems.c
Drawing/DrawingService.vala:141.6-141.62: error: Invalid assignment from owned expression to unowned variable
                    pbuf = IconTheme.get_default ().load_icon (icon, size, 0);
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Drawing/DrawingService.vala:145.7-145.68: error: Invalid assignment from owned expression to unowned variable
                        pbuf = IconTheme.get_default ().load_icon (parts [0], size, 0);
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 0 warning(s)
make[2]: *** [plank_vala.stamp] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
    Aborting...

Either I'm missing something so obvious, or r235 is broken.


It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)

My AUR packages

Offline

#5 2011-07-06 17:15:39

tydell
Member
From: actually: Hannover, DE
Registered: 2009-07-26
Posts: 109
Website

Re: [Request] Plank, from Elementary team

First You need to install bamf with disabled gio module.
Here' the  PKGBUILD , but before that download this and save as disablegio.patch in the same folder
Next You can install plank, this is PKGBUILD

Last edited by tydell (2011-07-06 17:16:51)

Offline

#6 2011-07-06 17:26:20

sumski
Member
From: Zagreb, Croatia
Registered: 2011-04-30
Posts: 114

Re: [Request] Plank, from Elementary team

I think you need vala-0.10

Offline

#7 2011-07-06 17:59:39

tydell
Member
From: actually: Hannover, DE
Registered: 2009-07-26
Posts: 109
Website

Re: [Request] Plank, from Elementary team

I have vala installed

[tydell@myhost ~]$ yaourt -Ss vala
extra/vala 0.12.1-1 [installed]
    Compiler for the GObject type system

Offline

#8 2011-08-12 08:55:20

alez
Member
Registered: 2009-03-09
Posts: 74

Re: [Request] Plank, from Elementary team

pkgbuild works now although at the moment it's not a very useful application in my view. You have to edit text files to get new launchers and it will launch a new instance of a running application instead of bringing up the running one.


Linux makes you a better person

Offline

Board footer

Powered by FluxBB