You are not logged in.
Pages: 1
hi
i am trying to build a program called theorur, for that i need oggfwd.
http://v2v.cc/~j/oggfwd/
i cant manage to install it. here is my pkgbuild.
what could be the error
thanks
# Contributor: farid abdelnour < farid at atelier-labs.org>
pkgname=oggfwd
pkgver=1
pkgrel=1
pkgdesc="pipes an ogg stream to an icecast server"
arch=('i686')
url="http://v2v.cc/~j/oggfwd/"
depends=('')
license=('GPL')
source=(http://www.v2v.cc/~j/ffmpeg2theora/oggfwd/oggfwd.tar.gz)
md5sums=('8402d26a5a8ff318ef6ea01ec146c8cc')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
make oggfwd
}
Last edited by osc~ (2008-06-10 16:24:28)
Offline
The build () function doesn't do what you want it to do.
1) 'cd $startdir/src/${pkgname}' (should be without -${pkgver}) - reason: if you look into the src/ dir, you'll see that the directory is named only oggfwd, not oggfwd-1.
2) you need to 'install' somewhere, ie copy the compiled binary into the appropriate directory in $startdir/pkg/. One way to do it is 'install -D -m755 oggfwd $startdir/pkg/usr/bin/oggfwd || return 1'
3) the '|| return 1' is a good thing (makepkg bails out on error), so it would be good if you 'make oggfwd || return 1'
EDIT: Altogether
build () {
cd $startdir/src/${pkgname}
make oggfwd || return 1
install -D -m755 oggfwd $startdir/pkg/usr/bin/oggfwd || return 1
}
And generally here's how do the PKGBUILDs work. The build () function is just a script which gets called when you run 'makepkg'. It needs to 1) compile the program 2) move the files that you want to be a part of the package into $startdir/pkg. When the function exits, the only other thing that makepkg does is that it makes a tarball from everything under $startdir/pkg.
Last edited by bender02 (2008-06-09 15:22:34)
Offline
please check out this post:
Offline
The build () function doesn't do what you want it to do.
1) 'cd $startdir/src/${pkgname}' (should be without -${pkgver}) - reason: if you look into the src/ dir, you'll see that the directory is named only oggfwd, not oggfwd-1.
2) you need to 'install' somewhere, ie copy the compiled binary into the appropriate directory in $startdir/pkg/. One way to do it is 'install -D -m755 oggfwd $startdir/pkg/usr/bin/oggfwd || return 1'
3) the '|| return 1' is a good thing (makepkg bails out on error), so it would be good if you 'make oggfwd || return 1'EDIT: Altogether
build () { cd $startdir/src/${pkgname} make oggfwd || return 1 install -D -m755 oggfwd $startdir/pkg/usr/bin/oggfwd || return 1 }
And generally here's how do the PKGBUILDs work. The build () function is just a script which gets called when you run 'makepkg'. It needs to 1) compile the program 2) move the files that you want to be a part of the package into $startdir/pkg. When the function exits, the only other thing that makepkg does is that it makes a tarball from everything under $startdir/pkg.
i did that but still no result.
check out if you could the link of the previous post.
cheers
Offline
Try only with 'make || return 1' instead 'make oggfwd || return 1'
For some reason, the one with oggfwd does not compile properly here.
EDIT: and you should fix the version number (i believe it should be 0.2).
Last edited by bender02 (2008-06-10 00:00:02)
Offline
i got an error having to do with dependencies. so it didnt install.
Offline
i got an error having to do with dependencies. so it didnt install.
That doesn't say much.
Offline
osc~ wrote:i got an error having to do with dependencies. so it didnt install.
That doesn't say much.
i manage to compile it as a package with makepkg.
but when i do sudo pacman -U oggfwd-0.2-1-i686.pkg.tar.gz it says that there is a dependencir error. yet it doesnt state which dependency. so i dont know how to really elaborate.
Offline
Well, -v flag to pacman makes it spit out pretty much all it can. So try that. It could be that a package that depends on it blocks it somehow - then uninstall that one, reinstall oggfwd and install back the other one.
Offline
here is the result (it is in portuguese but it says that it couldnt comply to all dependencies)
Root : /
Conf File : /etc/pacman.conf
DB Path : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Lock File : /var/lib/pacman/db.lck
Log File : /var/log/pacman.log
Targets : oggfwd-0.2-1-i686.pkg.tar.gz
carregando informações do pacote...
verificando dependências...
erro: falha ao preparar transação (não foi possível satisfazer as dependências)
:: oggfwd: requer
Offline
Ah! I think the problem is your depends=('') line. There's no package with empty name Just try to leave off that line.
Offline
yes
finally
thanks!!!
Offline
Pages: 1