You are not logged in.

#1 2011-03-02 02:02:08

tjwoosta
Member
Registered: 2008-12-18
Posts: 453

[solved] PGKBUILD for hg package error "abort: HTTP Error 404: NOT...

Im working on a PKGBUILD for pcw-hg using the example PKGBUILD-hg.proto as a guide

I can do..

hg clone https://bitbucket.org/emg/pcw

..and everything works fine, but with makepkg and the PKGBUILD im creating I get "abort: HTTP Error 404: NOT FOUND"

Heres what Ive got..

# Maintainer: tjwoosta <tjwoosta@gmail.com>

pkgname='pcw-hg'
pkgver=146
pkgrel=1
pkgdesc="pcw uses inotify to monitor a directory tree (created by ii) and \
    open terminals running cw with the in and out files for each channel."
arch=('i686' 'x86_64')
url="http://www.deepcube.net/code/pcw/"
license=('MIT')
depends=('ii-emg-hg' 'srw-hg')
makedepends=('mercurial')
provides=('pcw')
conflicts=('pcw')

_hgroot="https://bitbucket.org/emg/"
_hgrepo="pcw"

build() {
  cd "$srcdir"
  msg "Connecting to Mercurial server...."

  if [ -d $_hgrepo ] ; then
    cd $_hgrepo
    hg pull -u
    msg "The local files are updated."
  else
    hg clone $_hgroot $_hgrepo
  fi

  msg "Mercurial checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_hgrepo-build"
  cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
  cd "$srcdir/$_hgrepo-build"

  make
}

package() {
  cd "$srcdir/$_hgrepo-build"
  make PREFIX="/usr" DESTDIR="$pkgdir/" install
  install -D -m644 LICENSE \
    "$pkgdir/usr/share/licenses/$pkgname/license.txt"
  install -D -m755 extras/cw_color.sh \
    "$pkgdir/usr/bin/cw_color.sh"
  install -D -m755 extras/chat.sh \
    "$pkgdir/usr/bin/chat.sh"
  install -D -m755 extras/pcw_notify.sh \
    "$pkgdir/usr/bin/pcw_notify.sh"
} 

Any idea what Im doing wrong?

Last edited by tjwoosta (2011-03-02 03:17:01)

Offline

#2 2011-03-02 02:55:09

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [solved] PGKBUILD for hg package error "abort: HTTP Error 404: NOT...

Don't know if this is helpful, but you have a space between root and repo:

hg clone $_hgroot $_hgrepo

Offline

#3 2011-03-02 03:00:00

tjwoosta
Member
Registered: 2008-12-18
Posts: 453

Re: [solved] PGKBUILD for hg package error "abort: HTTP Error 404: NOT...

Thanks for pointing that out, but it makes no difference. Same error.

btw, the example pkgbuild in /usr/share/pacman/ that I was using also has this space, if somebody wants to fix that. Not sure if it really matters though since it doesnt seem to get that far.

Last edited by tjwoosta (2011-03-02 03:03:36)

Offline

#4 2011-03-02 03:06:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved] PGKBUILD for hg package error "abort: HTTP Error 404: NOT...

You could try removing the trailing slash on hg_root and just have:

_hgroot="https://bitbucket.org/emg"

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-03-02 03:13:44

tjwoosta
Member
Registered: 2008-12-18
Posts: 453

Re: [solved] PGKBUILD for hg package error "abort: HTTP Error 404: NOT...

jasonwryan wrote:

You could try removing the trailing slash on hg_root and just have:

_hgroot="https://bitbucket.org/emg"

lol, I cant believe I didnt think or that, I tried all kinds of crazy stuff.   Works though thank you smile

Offline

Board footer

Powered by FluxBB