You are not logged in.

#1 2009-03-29 12:48:53

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Convert MintMenu to ArchMenu

http://bbs.archlinux.org/viewtopic.php?id=66987 As you can see in that topic , i have figured out a way to make mintmenu work in Arch. I modified a part of the code and the icon.

I would like to make a pkgbuild for this package and maybe in the future tweak it specially for arch.
To install the menu it simply copied the libs and bin files to /usr/bin and /usr/lib , i took this info from this howto http://jasoncarpenter.blogspot.com/2009 … on-my.html .

Should the pkgbuild just contain three cp lines to install it? ( i am still a bit of a noob @ pkgbuilds)
For people how are interested, here are the files i used http://github.com/jelly/archmenu/tree/master

Offline

#2 2009-03-29 16:45:43

mike_93
Member
Registered: 2009-01-31
Posts: 60

Re: Convert MintMenu to ArchMenu

Wow thanks for doing this, just a quick question though, why are the tar and cp lines commented out in the build() function? Sorry if there's some obvious reason, but I'm not really knowledgeable about PKGBUILDs.


Double booting Arch Linux and Linux Mint
Reader of XKCD

Offline

#3 2009-03-30 06:57:20

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: Convert MintMenu to ArchMenu

well it isn't finished ,i haven't got a working PKGBUILD yet

Offline

#4 2009-05-05 14:04:25

ryooichi
Member
Registered: 2009-01-17
Posts: 15

Re: Convert MintMenu to ArchMenu

No the PKGBUILD shouldn't cp the files directly to the system... it should cp them to the $pkgdir, i.e. using the lines from your PKGBUILD:
#cp -r mintmenu-$pkgver/usr/lib/linuxmint/ $pkgdir/usr/lib/
#cp -r mintmenu-$pkgver/usr/lib/bonobo/servers/mintMenu.server $pkgdir/usr/lib/bonobo/servers/mintMenu.server
#cp -r mintmenu-$pkgver/usr/bin/mintmenu $pkgdir/usr/bin/

The point of a PKGBUILD is to create a package file (.tar.gz) that contains the files that can be portably installed and uninstalled via 'pacman -U' and 'pacman -R', respectively. If you install directly to the system during package creation... you'd need to be root or it'd fail... what package will be created? and how would it be uninstalled?

By the way, I'd also like to get mintmenu working on Arch. I found this directory: http://packages.linuxmint.com/pool/main/m/mintmenu/ that has several versions available (4.1.2, 4.2.2, 4.7) in both .deb and .tar.gz files. I'm starting manually with the version 4.7 tarball. Thanks to your help and pointing out the jasoncarpenter blog, it shouldn't be too difficult. Once I get it working, I'll put a PKGBUILD in the AUR.

Offline

#5 2009-05-05 17:05:10

ryooichi
Member
Registered: 2009-01-17
Posts: 15

Re: Convert MintMenu to ArchMenu

In case it takes me longer than expected... or somebody wants to help out... here is where I'm at right now with the UNTESTED PKGBUILD:

# Contributor: ryooichi <ryooichi+arch AT gmail DOT com>
# Real thanks goes to jelly, mike_93 and the original creators of mintmenu, usp, slab...
# See also:
#   http://bbs.archlinux.org/viewtopic.php?id=66987
#   http://bbs.archlinux.org/viewtopic.php?id=68633
#   http://github.com/jelly/archmenu
pkgname=mintmenu
pkgver=4.7
pkgrel=1
pkgdesc="Linux Mint Menu for Gnome"
arch=('i686' 'x86_64')
url="http://packages.linuxmint.com/pool/main/m/mintmenu/"
license=('GPL')
groups=()
depends=('gnome-panel' 'gnome-python' 'gnome-python-desktop' 'pyxdg' 'pygtk' 'archlinux-artwork')
optdepends=('alacarte: for editing the gnome menu')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
#install=
source=('http://packages.linuxmint.com/pool/main/m/mintmenu/mintmenu_4.7.tar.gz')
noextract=()
md5sums=('ea9bb5f20637e0860474805cec1da0f1')

build() {
  cd "$srcdir/mintmenu-4.6"
  sed -i 's|/usr/lib/linuxmint/mintSystem/icon.png|/usr/share/archlinux/icons/archlinux-icon-tango-32.svg|' usr/lib/bonobo/servers/mintMenu.server
  cp -R usr $pkgdir/
}
# vim:syntax=sh

I'm also going to try gnome-main-menu and gnome-main-menu-svn again for s&g's. There are some problems with using mintmenu... but I'm still working my way through the various options...

Offline

#6 2009-05-06 13:21:46

ryooichi
Member
Registered: 2009-01-17
Posts: 15

Re: Convert MintMenu to ArchMenu

A PKGBUILD is in the AUR as 'mintmenu' at http://aur.archlinux.org/packages.php?ID=26266 !

I've tested it locally (makepkg/pacman -U) as well as installation via yaourt (yaourt mintmenu) and seems to work pretty well. As you can see in the PKGBUILD, icons are provided by additional dependency archlinux-artwork.

To do: I probably ought to fix or remove the references to Software Manager and Package Manger.

By the way, gnome-main-menu and gnome-main-menu-svn seem to have some unfixed dependency issues... so I'm steering clear for now. This mintmenu pkgbuild is working well for me now.

Offline

#7 2009-05-06 15:03:01

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: Convert MintMenu to ArchMenu

nice pacakge , some things just won't work update manager etc. But i don't use gnome anymore so hm the other arch users can profit of this package tongue

Offline

#8 2009-05-08 01:55:52

Sharpeee
Member
From: Denmark
Registered: 2008-10-19
Posts: 59

Re: Convert MintMenu to ArchMenu

This is awesome! Only, that it doesn't work for me at the moment!

I get a "Couldn't load plugin: applications" with these errors:

mintmenu.png

Offline

#9 2009-05-12 08:09:10

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: Convert MintMenu to ArchMenu

Has the package been cleared of mint *shit* ,like the guy of fedora did or did this package just got installed from the mint source ?

Hmm wel this seems to be not the issue because the packages pached it , but i wouldnt use it if it depends on gtkpacman .
I don't use gnome or gnome-panel so it isnt an issue for me but maybe for other users

Last edited by jelly (2009-05-12 08:12:11)

Offline

#10 2009-05-12 09:24:41

artiom
Member
From: France
Registered: 2008-07-29
Posts: 111

Re: Convert MintMenu to ArchMenu

In your PKGBUILD you can use ${pkgver} variable in place of the version numbers. It will save you from

and than

cd "$srcdir/mintmenu-4.6"

Offline

Board footer

Powered by FluxBB