You are not logged in.

#1 2008-03-11 15:00:11

goethe
Member
Registered: 2008-01-09
Posts: 25

can't write PKGBUILD for wesnoth 1.4

Hi! The wesnoth version in extra is quite old, so I tried to change the PKGBUILD in abs for wesnoth 1.4, the actual version. It doesn't work- even if I replace the variable $pkgver in source=.. with the absolute path (source=(http://heanet.dl.sourceforge.net/sourceforge/wesnoth/wesnoth-1.4.tar.bz2), makepkg adds a ".0", to the source path. Download fails, because there is no http://heanet.dl.sourceforge.net/source … .0.tar.bz2! Has anybody here a solution for removing this "feature"?

Offline

#2 2008-03-11 17:35:44

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: can't write PKGBUILD for wesnoth 1.4

I just tried editing the PKGBUILD and changing the pkgver to 1.4 works for me.

==> Making package: wesnoth 1.4-1  (tis mar 11 18:34:13 CET 2008)
==> Retrieving Sources...
  -> Downloading wesnoth-1.4.tar.bz2...
--2008-03-11 18:34:14--  http://heanet.dl.sourceforge.net/sourceforge/wesnoth/wesnoth-1.4.tar.bz2

PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#3 2008-03-11 17:57:35

goethe
Member
Registered: 2008-01-09
Posts: 25

Re: can't write PKGBUILD for wesnoth 1.4

Not for me, funny... I'm running arch-testing, is that the reason for the different behavior of makepkg?

Offline

#4 2008-03-11 18:14:26

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: can't write PKGBUILD for wesnoth 1.4

Could be, I'm just using core/extra/community repositories.

For what it's worth, this is how the top of the PKGBUILD looks to me:

pkgname=wesnoth 
pkgver=1.4
pkgrel=1
pkgdesc="A turn-based strategy game on a fantasy world" 
arch=(i686 x86_64)
license=('GPL')
url="http://www.wesnoth.org/" 
depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'libvorbis' 'fribidi' 'freetype2' 'gcc-libs')
#source=(http://www.wesnoth.org/files/$pkgname-$pkgver.tar.gz) 
install=wesnoth.install
source=(http://heanet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)

PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#5 2008-03-11 18:27:36

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: can't write PKGBUILD for wesnoth 1.4

I think there is something wrong with the server, at least from some regions of the world. Try http://downloads/sourceforge.net/sourceforge

Offline

#6 2008-03-11 18:58:14

goethe
Member
Registered: 2008-01-09
Posts: 25

Re: can't write PKGBUILD for wesnoth 1.4

There's nothing wrong with the server, makepkg adds a ".0" to the link (look at my first post). vex, my PKGBUILD looks the same, funny..

Last edited by goethe (2008-03-11 18:58:29)

Offline

#7 2008-03-11 19:23:24

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: can't write PKGBUILD for wesnoth 1.4

What is your version of makepkg?

Last edited by Stefan Husmann (2008-03-11 19:23:54)

Offline

#8 2008-03-11 19:39:36

goethe
Member
Registered: 2008-01-09
Posts: 25

Re: can't write PKGBUILD for wesnoth 1.4

It's 3.1.3, I think it's a part of pacman-testing. Maybe someone should write a bug-report- but not me, my english is too bad :-(

Last edited by goethe (2008-03-11 19:40:19)

Offline

#9 2008-03-11 20:07:09

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: can't write PKGBUILD for wesnoth 1.4

I do not use testing, but my makepkg also is 3.1.3,  updated last Saturday.

Currently I try to build wesnoth. The download was successfull, so I cannot reproduce your error. But it is still building.

But  I used http://downloads/sourceforge.net/sourceforge as source-URL.

Last edited by Stefan Husmann (2008-03-11 20:10:04)

Offline

#10 2008-03-11 20:22:21

goethe
Member
Registered: 2008-01-09
Posts: 25

Re: can't write PKGBUILD for wesnoth 1.4

Makepkg shows: "Fehler beim Download von wesnoth-1.4.0.tar.bz2"
It's german, but you see makepkg is trying to download wesnoth with a wrong filename, my source line in the PKGBUIKLD looks like this:.source=(http://downloads/sourceforge.net/sourceforge/wesnoth/wesnoth-1.4.tar.bz2). First I tried  source=(http://heanet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2), didn't work, too.

Last edited by goethe (2008-03-11 20:23:15)

Offline

#11 2008-03-12 08:50:49

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: can't write PKGBUILD for wesnoth 1.4

goethe wrote:

Makepkg shows: "Fehler beim Download von wesnoth-1.4.0.tar.bz2". It's german,

No Problem, I am german, too :.)

Actually I do not know and have no idea how this can happen. It never happend to me, and I do a lot of packaging.
I had a problem with the connect to the heanet server, but it was not a problem that he tried to put a .0 behind the URL but to get a connection at all.

This is really weird.:|

Last edited by Stefan Husmann (2008-03-12 08:51:18)

Offline

#12 2008-03-12 10:04:11

goethe
Member
Registered: 2008-01-09
Posts: 25

Re: can't write PKGBUILD for wesnoth 1.4

It's more than weird: I replaced the source= line with source=(blabla.tar.bz2), saved the file, typed makepkg... and makepkg tried to download wesnoth-1.4.0.tar.bz2!!! Reopening the PKGBUILD showed the correct (nonsensical "blabla") content, does makepkg read a cached content of the PKGBUILD or does it ignore the source=-line completely? Rebooting doesn't help, strange..

Last edited by goethe (2008-03-12 10:06:29)

Offline

#13 2008-03-24 12:59:53

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: can't write PKGBUILD for wesnoth 1.4

Late reply, but I've just found out that Wesnoth 1.4 is in the French Archlinux repository. You might go for that:

[archlinuxfr]
Server = http://repo.archlinux.fr/i686

Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#14 2008-03-24 19:31:56

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: can't write PKGBUILD for wesnoth 1.4

finferflu wrote:

Late reply, but I've just found out that Wesnoth 1.4 is in the French Archlinux repository. You might go for that:

[archlinuxfr]
Server = http://repo.archlinux.fr/i686

Thank you! I did not know this repo. And there is on for x86_64, too.

Offline

#15 2008-03-24 19:34:08

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: can't write PKGBUILD for wesnoth 1.4

Yeah, I have discovered it because it's the official Yaourt repository wink


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#16 2008-04-29 10:19:11

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: can't write PKGBUILD for wesnoth 1.4

wesnoth is in extra now!

Offline

#17 2008-04-29 22:00:50

ss2
Member
Registered: 2007-10-05
Posts: 83

Re: can't write PKGBUILD for wesnoth 1.4

Yey! big_smile

But so what, already had my own PKGBUILD to play the new release and must say: That game rocks, although I'm not really a fan of turn based strategies. But this game is a big exception.

Offline

Board footer

Powered by FluxBB