You are not logged in.
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
Don't know if this is helpful, but you have a space between root and repo:
hg clone $_hgroot $_hgrepoOffline
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
You could try removing the trailing slash on hg_root and just have:
_hgroot="https://bitbucket.org/emg"Offline
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 ![]()
Offline