You are not logged in.
Hi, I'm learning how to build my own packages, succesfully I made fluxbox and gxmame packages, but with snownews I've got an error in makepkg process , I hope you guys help me out.
My PKGBUILD:
pkgname=snownews
pkgver=1.5.6.1
pkgrel=1
pkgdesc="Text mode RSS newsreader for Linux and Unix"
url="http://kiza.kcore.de/software/snownews/"
license="GPL"
depends=('libxml2' 'ncurses>=5.0')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://kiza.kcore.de/software/snownews/download/snownews-1.5.6.1.tar.gz)
md5sums=()
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
And the Error message is:
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/de/snownews.1': No such file or directory
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/fr/snownews.1': No such file or directory
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/it/snownews.1': No such file or directory
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/nl/snownews.1': No such file or directory
install: cannot stat `/var/abs/local/snownews/pkgdoc/man/ru_RU.KOI8-R/snownews.1': No such file or directory
make: *** [install-man] Error 1
==> ERROR: Build Failed. Aborting...
When I realized a make && make install manually, I got no errors, so ... something missing on my PKGBUILD?
Thanx
Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1
Offline
i think that the install script in the sources is buggy, and iut does ignore the DESTDIR value.
You have two solutions:make the PKGBUILD do the installation process or, what's nicer, write a patch that fixes this bug... and send it to snownews developers.
Offline
make sure DESTDIR is the proper variable for the makefile... that's a common place of errors
you may need to sed the Makefile... lemme look at it real quick
Offline
try this: (untested)
this line:
$(INSTALL) -m 0644 $(DESTDIR)$(MAN)/$$L/snownews.1 $(PREFIX)/man/$$L/man1;
should be:
$(INSTALL) -m 0644 $(MAN)/$$L/snownews.1 $(DESTDIR)$(PREFIX)/man/$$L/man1;
I dunno if the $s need to be escaped or not...
pkgname=snownews
pkgver=1.5.6.1
pkgrel=1
pkgdesc="Text mode RSS newsreader for Linux and Unix"
url="http://kiza.kcore.de/software/snownews/"
license="GPL"
depends=('libxml2' 'ncurses>=5.0')
source=(http://kiza.kcore.de/software/snownews/download/$pkgname-$pkgver.tar.gz)
md5sums=()
build()
{
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
# may or maynot need the dollar signs escaped....
sed -i "s#$(DESTDIR)$(MAN)#$(MAN)#g" Makefile
sed -i "s#snownews.1 $(PREFIX)/man/#snownews.1 $(DESTDIR)$(PREFIX)/man/#g" Makefile
make || return 1
make DESTDIR=$startdir/pkg install
}
Offline
It worked out perfectly according your PKGBUILD phrakture!, thanxs! ... I need to learn use "sed" better, very useful in some circunstances like this
Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1
Offline
It worked out perfectly according your PKGBUILD phrakture!, thanxs! ... I need to learn use "sed" better, very useful in some circunstances like this
just for a basic overview:
sed -i expr filename
expr can be a million things, but the common usage is to replace things in "filename"... the expression is as follows:
"s<symbol><original text><symbol><new text><symbol>g"
the "s" indicates it's a replace operation... the <symbol> can be almost anything, but I usually use "@", "#", "|", or "/" - the "g" at the end if for global, meaning replace every occurance in the file... leave g off and it only hits the first occurance... so:
sed -i "s@something@nothing@g" myfile
will replace every instance of the word "something" with the word "nothing" in myfile...
Offline
Thank U so much phrakture for your time
Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1
Offline