You are not logged in.

#1 2010-04-07 05:00:16

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Quakelive Fix PKGBUILD

Hi all, we made a small pkgbuild that can be usefull for all of those who wants to play after the libpng crash
It currently asks for firefox>=3.5 and libpng-old as dependencies

  
  # quakelive fix 1.0
  # mantainer Andrea Imparato (http://p1mps.altervista.org)
  # mantainer Samuele Mattiuzzo (http://smattiuz.altervista.org)
  
  arch=('x86_64' 'i686')
  pkgname=quakelive
  pkgver=1.0
  pkgrel=1
  pkgdesc="quakelive with libpng fix"
  url="http://smattiuz,altervista.org and http://p1mps.altervista.org"
  license="GPL2"
  depends=(libpng-old 'firefox>=3.5')
  source=(http://smattiuz.altervista.org/pkg/quakelive.sh)
  md5sums=(da2439f1085cd7801987f491672dabdc)
  build(){
          cd /usr/bin/
          sudo wget http://smattiuz.altervista.org/pkg/quakelive.sh
          sudo chmod +x quakelive.sh
  }

any comments would be really appreciated smile

Last edited by samuele.mattiuzzo (2010-04-07 05:02:17)

Offline

#2 2010-04-07 05:05:26

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Quakelive Fix PKGBUILD

This PKGBUILD is not valid. You cannot call sudo during build and you cannot write to /usr/bin. See the ABS documentation. You need to install to $pkgdir/usr/bin for example.

Offline

#3 2010-04-07 05:11:31

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: Quakelive Fix PKGBUILD

sure thanks, we're working on that wink was just a tryout big_smile

Offline

#4 2010-04-07 17:27:31

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: Quakelive Fix PKGBUILD

Try

  # quakelive fix 1.0
  # mantainer Andrea Imparato (http://p1mps.altervista.org)
  # mantainer Samuele Mattiuzzo (http://smattiuz.altervista.org)
  
  arch=('x86_64' 'i686')
  pkgname=quakelive
  pkgver=1.0
  pkgrel=1
  pkgdesc="quakelive with libpng fix"
  url="http://smattiuz.altervista.org and http://p1mps.altervista.org"
  license=('GPL2')
  depends=('libpng12' 'firefox>=3.5')
  source=('http://smattiuz.altervista.org/pkg/quakelive.sh')
  md5sums=('da2439f1085cd7801987f491672dabdc')
  build(){
          install -d -m755 ${pkgdir}/usr/bin
          install -m755 ${srcdir}/quakelive.sh ${pkgdir}/usr/bin/quakelive
  }

Offline

#5 2010-04-07 17:36:35

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Quakelive Fix PKGBUILD

The url is also invalid. It has to be one single url. And loading firefox with libpng12 might not be a good idea anyway. You should either recompile quakelive or ask upstream to do so (or include a libpng into their plugin).

Offline

#6 2010-04-07 19:21:16

p1mps
Member
From: italy
Registered: 2009-05-04
Posts: 28
Website

Re: Quakelive Fix PKGBUILD

Here it is a new version:

 # quakelive fix 1.0
 # mantainer Andrea Imparato (http://p1mps.altervista.org)
 # mantainer Samuele Mattiuzzo (http://smattiuz.altervista.org)

  arch=('x86_64' 'i686')
  pkgname=quakelive
  pkgver=1.0
   pkgrel=1
   pkgdesc="quakelive with libpng fix"
   url="http://smattiuz,altervista.org and http://p1mps.altervista.org"
   license="GPL2"
   depends=(libpng-old 'firefox>=3.5')
   source=(http://smattiuz.altervista.org/pkg/quakelive.sh)
   md5sums=(da2439f1085cd7801987f491672dabdc)
  build(){
  mkdir $pkgdir/usr/bin
          cd $pkgdir/usr/bin
          wget http://smattiuz.altervista.org/pkg/quakelive.sh
          chmod +x quakelive.sh
          make DESTDIR=$pkgdir install || return 1
                   
  }

And this is the Makefile:


install:
    @echo You must be root to install 
    install -m 0755 quakelive.sh /usr/bin

.PHONY:
    install

Science is a differential equation. Religion is a boundary condition.
Alan Turing

Offline

#7 2010-04-07 19:27:31

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Quakelive Fix PKGBUILD

Don't use wget in your build function. pacman already downloads all sources.

Offline

#8 2010-04-07 19:58:45

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: Quakelive Fix PKGBUILD

p1mps wrote:

Here it is a new version:

 # quakelive fix 1.0
 # mantainer Andrea Imparato (http://p1mps.altervista.org)
 # mantainer Samuele Mattiuzzo (http://smattiuz.altervista.org)

  arch=('x86_64' 'i686')
  pkgname=quakelive
  pkgver=1.0
   pkgrel=1
   pkgdesc="quakelive with libpng fix"
   url="http://smattiuz,altervista.org and http://p1mps.altervista.org"
   license="GPL2"
   depends=(libpng-old 'firefox>=3.5')
   source=(http://smattiuz.altervista.org/pkg/quakelive.sh)
   md5sums=(da2439f1085cd7801987f491672dabdc)
  build(){
  mkdir $pkgdir/usr/bin
          cd $pkgdir/usr/bin
          wget http://smattiuz.altervista.org/pkg/quakelive.sh
          chmod +x quakelive.sh
          make DESTDIR=$pkgdir install || return 1
                   
  }

And this is the Makefile:


install:
    @echo You must be root to install 
    install -m 0755 quakelive.sh /usr/bin

.PHONY:
    install

Don't use a Makefile, please, take a look at the one I posted above.

Offline

#9 2010-04-07 20:40:44

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: Quakelive Fix PKGBUILD

thanks guys, we're working our way out of ABS smile
and sorry for p1mps, he first write some code, then reads the docs smile

Offline

#10 2010-04-19 01:35:37

p1mps
Member
From: italy
Registered: 2009-05-04
Posts: 28
Website

Re: Quakelive Fix PKGBUILD

ok we made a new version of the pkgbuild, can you tell us if it's correct, or near correct? what else should we add?

# quakelive fix 1.0
# mantainer Andrea Imparato (http://p1mps.altervista.org)
# mantainer Samuele Mattiuzzo (http://smattiuz.altervista.org)

arch=('x86_64' 'i686')
pkgname=quakelive
pkgver=1.0
pkgrel=1
pkgdesc="quakelive with libpng fix"
url="http://smattiuz,altervista.org"
license="GPL2"
depends=(libpng-old 'firefox>=3.5')
source=(http://smattiuz.altervista.org/pkg/$pkgname.tar.gz)
md5sums=(888fa4e350e34786363ef18e13dc9ba2)

build(){
          install -m 644 -D $srcdir/$pkgname/quakelive $pkgdir/usr/bin/quakelive         
  }

Last edited by p1mps (2010-04-19 01:37:11)


Science is a differential equation. Religion is a boundary condition.
Alan Turing

Offline

#11 2010-04-19 15:47:56

p1mps
Member
From: italy
Registered: 2009-05-04
Posts: 28
Website

Re: Quakelive Fix PKGBUILD

Anyone?


Science is a differential equation. Religion is a boundary condition.
Alan Turing

Offline

Board footer

Powered by FluxBB