I found a program that I would like to build but I have a problem. The version number has a dash (0.5.1-2) and when I put that in slkbuild it is not accepted. I have built an older version (4.5) but would like to to the latest of course . I even tried downloading the file and renaming it but still couldn't get it to work.
thanks in advance,
john
question on slkbuild
Re: question on slkbuild
You can replace the dash with a dot, so that the $pkgver variable reads 0.5.1.2 instead. Just remember that as you have now changed the variable $pkgver , then you'll probably have to replace any references to $pkgver in the build section with the original value of 0.5.1-2.
Re: question on slkbuild
Thanks, but I still don't have it right. I changed the pkgver but I didn't change the source so it would download, then I went down and changed this line "cd $startdir/src/$pkgname-$pkgver" to "cd $startdir/src/$pkgname-0.5.1.2". That gave this error:
thanks again,
john
ps: in the meantime I changed everything to 0.5.1 and it worked. Still not the newest but very close.
Code: Select all
root[iptux]# slkbuild -X
Automatically setting arch to x86_64
WARNING: You appear to have too many commented variables, you should look into it.
Downloading iptux-0.5.1-2.tar.gz
--2010-09-20 10:08:13-- http://iptux.googlecode.com/files/iptux-0.5.1-2.tar.gz
Resolving iptux.googlecode.com (iptux.googlecode.com)... 74.125.127.82
Connecting to iptux.googlecode.com (iptux.googlecode.com)|74.125.127.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 438269 (428K) [application/x-gzip]
Saving to: `iptux-0.5.1-2.tar.gz'
100%[======================================>] 438,269 800K/s in 0.5s
2010-09-20 10:08:19 (800 KB/s) - `iptux-0.5.1-2.tar.gz' saved [438269/438269]
build-iptux.sh has been created
tar -xf iptux-0.5.1-2.tar.gz
./build-iptux.sh: line 170: cd: /mnt/files/Builds/programs/iptux/src/iptux-0.5.1.2: No such file or directory
./build-iptux.sh: line 171: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
build() failed.
john
ps: in the meantime I changed everything to 0.5.1 and it worked. Still not the newest but very close.
Re: question on slkbuild
You got it right with the source, change cd $startdir/src/$pkgname-$pkgver to cd $startdir/src/$pkgname-0.5.1-2 and see if it works.maximus wrote:you'll probably have to replace any references to $pkgver in the build section with the original value of 0.5.1-2.
Edit: Generally, when you download the source for a program in compressed format (e.g. tar.gz), the source will be contained in a folder inside the compressed file that reads the same as the name of the compressed file. In this case the compressed file is iptux-0.5.1-2.tar.gz so the source should be contained inside the folder iptux-0.5.1-2. This isn't always the case however, so the easiest thing to do is open up the source file in File Roller and check.
Re: question on slkbuild
Thanks, i'll try that when I get back home. Using my phone now
John
John
Re: question on slkbuild
Thanks for your help. The only way I could get it to build was by making the pkgver=0.5.1 and in the source I specified 0.5.1-2.tar.gz. Left the rest of the slkbuild file as it was. It makes the newest version but names it 0.5.1. I wonder if I post it to the repository if it will work or not.
thanks again,
john
thanks again,
john
Re: question on slkbuild
The folder inside the source file is iptux-0.5.1 instead of iptux-0.5.1-2 as I had assumed - just checked it myself in File Roller. So setting $pkgver to 0.5.1 will work as you already found out Should have taken my own advice to begin withjbs1136 wrote:The only way I could get it to build was by making the pkgver=0.5.1 and in the source I specified 0.5.1-2.tar.gz
Re: question on slkbuild
I do thank you for the help, I would still be using the older version without it. Curious why they used a dash in a slightly improved version.
john
john
Re: question on slkbuild
I'm guessing they probably fixed a bug in the source, but didn't change enough things to justify a full version jump.