You are not logged in.

#1 2008-04-15 19:20:20

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Install separate executable for weechat 0.2.7-dev?

I thought that if I wanted to change the name of a package, I could just add the new name to the PKGBUILD.  I modified the provides line in the PKGBUILD for weechat-git 20080318-2 to 'weechat-git' from 'weechat', but it still installs the executable to /usr/bin/weechat-curses.  Am I completely off-base here?

Here's the PKGBUILD (maintainer info removed):

pkgname=weechat-git
pkgver=20080318
pkgrel=2
pkgdesc="Fast, light & extensible IRC client (curses UI)"
arch=('i686' 'x86_64')
url="http://weechat.flashtux.org"
depends=('perl' 'python>=2.5' 'ruby' 'gnutls' 'lua' 'aspell')
makedepends=('git' 'cvs')
conflicts=('weechat-git')
provides=('weechat-git')
options=(!libtool)
license="GPLv3"
source=()
md5sums=()

_gitroot="git://git.sv.gnu.org/weechat.git"
_gitrepo="weechat"

build(){
    cd $startdir/src

    msg ""
    msg "Connecting to GIT server..."
 
    if [ ! -d $startdir/src/$_gitrepo ]; then
        msg "First time connected - cloning repo, this may take a while..."
        git-clone $_gitroot || return 1
    else
        cd $startdir/src/$_gitrepo
        msg "Updating files..."
        git-pull || return 1
    fi

    msg "Starting build process..."

    cp -r $startdir/src/$_gitrepo $startdir/src/$_gitrepo-build && cd $startdir/src/$_gitrepo-build

    ./autogen.sh  || return 1
    ./configure --prefix=/usr --with-debug=0 LDFLAGS="-lm -ldl" || return 1
    make && make DESTDIR=${startdir}/pkg install || return 1

    cd $startdir && rm -r $startdir/src/$_gitrepo-build

    msg ""
    msg "You've just build weechat from GIT."
    msg "This is a development version and may therefore be unstable."
    msg ""
}

Offline

#2 2008-04-15 20:49:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Install separate executable for weechat 0.2.7-dev?

weechat-git is the package name, nothing else. The code you are compiling builds a package with the same files and filenames as the stable release.

Re provides/conflicts, weechat-git is meant to conflict with, and provide, weechat. Your PKGBUILD above creates a package that provides/conflicts with itself.

Offline

#3 2008-04-17 19:26:22

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Install separate executable for weechat 0.2.7-dev?

I don't want to replace weechat.  I want to run the current and development versions concurrently.  I never did find where to change the name of the executable, but I was able to change where it gets installed to.  It installs to /usr/local.  Is that the right place?  Also, the git lines were pulling from the current tree, not from development, so I changed those. 

How do I go about offering the modified PKGBUILD to the maintainer?

Here is the new version:

# Maintainer: Tim Zebulla <amon at faumrahrer dot de>
# Contributor: Tim Zebulla <amon at faumrahrer dot de>

pkgname=weechat-git
pkgver=20080318
pkgrel=2
pkgdesc="Fast, light & extensible IRC client (curses UI)"
arch=('i686' 'x86_64')
url="http://weechat.flashtux.org"
depends=('perl' 'python>=2.5' 'ruby' 'gnutls' 'lua' 'aspell')
makedepends=('git' 'cvs')
conflicts=('weechat-git')
provides=('weechat-git')
options=(!libtool)
license="GPLv3"
source=()
md5sums=()

_gitroot="git://git.sv.gnu.org/weechat.git"
_gitrepo="weechat"

build(){
    cd $startdir/src

    msg ""
    msg "Connecting to GIT server..."
  
    if [ ! -d $startdir/src/$_gitrepo ]; then
        msg "First time connected - cloning repo, this may take a while..."
        git-clone $_gitroot 
        cd weechat
        git-checkout -b protocols origin/protocols || return 1
    else
        cd $startdir/src/$_gitrepo
        msg "Updating files..."
        git-pull . protocols || return 1
    fi

    msg "Starting build process..."

    cp -r $startdir/src/$_gitrepo $startdir/src/$_gitrepo-build && cd $startdir/src/$_gitrepo-build 

    ./autogen.sh  || return 1
    ./configure --enable-demo --disable-aspell --disable-trigger --prefix=/usr/local
    make && make DESTDIR=${startdir}/pkg install || return 1

    cd $startdir && rm -r $startdir/src/$_gitrepo-build

    msg ""
    msg "Warning!"
    msg "It's recommended to use another WeeChat home for testing this version."
    msg "For example:"
    msg "/usr/local/bin/weechat-curses --dir /tmp/weechat"
    msg ""
    msg "You've just build weechat from GIT."
    msg "This is a development version and may therefore be unstable."
    msg ""
}

Offline

#4 2008-04-17 19:42:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Install separate executable for weechat 0.2.7-dev?

There is no right place to install this, but /usr/local will do as well as anywhere else. Your package still provides/conflicts with itself, btw, and as I'm here, all that warning text should be in a *.install file.

If you want the maintainer to see it, add a comment in the AUR consisting of your PKGBUILD and anything else you want to say.

Offline

#5 2008-04-18 00:52:56

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Install separate executable for weechat 0.2.7-dev?

Thank you, tomk, for your help.  I (finally!) see what you mean by my package "conflicts with itself", and I have removed the conflicts line from the PKGBUILD.  I have also added an .install file, as you suggested.

Offline

#6 2008-04-18 06:39:55

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Install separate executable for weechat 0.2.7-dev?

see the difference between firefox and firefox3 PKGBUILDS


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#7 2008-05-02 12:33:39

Don-DiZzLe
Member
From: Nederland
Registered: 2007-03-31
Posts: 233

Re: Install separate executable for weechat 0.2.7-dev?

I installed this http://aur.archlinux.org/packages.php?ID=14159, but when trying to start weechat it hangs.

WeeChat (c) 2003-2008 - http://weechat.flashtux.org
[14:28:17]  |    ___       __         ______________        _____
[14:28:17]  |    __ |     / /___________  ____/__  /_______ __  /_
[14:28:17]  |    __ | /| / /_  _ \  _ \  /    __  __ \  __ `/  __/
[14:28:17]  |    __ |/ |/ / /  __/  __/ /___  _  / / / /_/ // /_
[14:28:17]  |    ____/|__/  \___/\___/\____/  /_/ /_/\__,_/ \__/
[14:28:17]  |       Welcome to WeeChat, the geekest IRC client!
[14:28:17]  |     WeeChat 0.2.7-dev, compiled on May  1 2008 20:16:37
[14:28:17]  | -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[14:28:17]  | Plugin "alias" loaded
[14:28:17]  | charset: terminal: UTF-8, internal: UTF-8
[14:28:17]  | Plugin "charset" loaded
[14:28:17]  | Plugin "debug" loaded
[14:28:17]  | Plugin "demo" loaded
[14:28:17]  | fifo: pipe open
[14:28:17]  | Plugin "fifo" loaded
[14:28:17]  | Plugin "irc" loaded
[14:28:17]  | Plugin "logger" loaded
[14:28:17]  | Plugin "perl" loaded
[14:28:17]  | Plugin "python" loaded
[14:28:17]  | Plugin "ruby" loaded

Offline

#8 2008-05-06 02:50:16

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Install separate executable for weechat 0.2.7-dev?

@Don-DiZzLe

My apologies for taking so long to get back to you.  To connect to freenode, which is already set up for you, type
/connect freenode

at the prompt.  Or you can edit the irc.conf file (new in devel version) to set autoconnect, servers, nicks, etc.

Offline

Board footer

Powered by FluxBB