You are not logged in.
Pages: 1
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
Last edited by samuele.mattiuzzo (2010-04-07 05:02:17)
Offline
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
sure thanks, we're working on that was just a tryout
Offline
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
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
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
Don't use wget in your build function. pacman already downloads all sources.
Offline
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
thanks guys, we're working our way out of ABS
and sorry for p1mps, he first write some code, then reads the docs
Offline
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
Anyone?
Science is a differential equation. Religion is a boundary condition.
Alan Turing
Offline
Pages: 1