You are not logged in.

#1 2010-11-14 09:19:43

leniviy
Member
Registered: 2009-05-23
Posts: 177

'export WGETRC' trick

makepkg couldn't download a source from one site, although URL was correct.
'export WGETRC' in PKGBUILD with some wget options helped.
Question: does makepkg always use wget ?
PKGBUILD:

pkgname=asfbin-bin
pkgver=1.7.1.756
pkgrel=1
pkgdesc="Intuitive, fast and reliable tool for processing ASF and WMV files"
arch=("i686")
url="http://www.radioactivepages.com/asfbin.aspx"
# license=('?')
depends=('libstdc++5')
source=('wgetrc'
        "http://www.radioactivepages.com/downloading.ashx?file=asfbin/asfbinlinux${pkgver}.zip")
md5sums=('8dfb6620156d96ec9551adf1a24ea407'
         '9c47a2cba77a5a3567508509c33b0593')

export WGETRC="$srcdir/wgetrc"
build() {
  cd $srcdir
  install -D -m755 asfbin-bin $pkgdir/usr/bin/asfbin-bin
}

wgetrc:

referer = http://www.radioactivepages.com/asfbin.aspx

Arch 64, xfce4

Offline

#2 2010-11-14 09:31:16

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,652
Website

Re: 'export WGETRC' trick

It uses what is defined in its configuration file:  /etc/makepkg.conf...

Offline

Board footer

Powered by FluxBB