On 10/02/2010 18:42, Ted Pavlic wrote:
Firmicus --

Thanks for this. I actually found a PKGBUILD for version 0.38 on my
computer dating from last June which obviously I had forgotten to upload
to AUR :( Although the C*FLAGS with -fPIC are set globally in there, it
builds and works just fine on my x86_64 system. I have updated it on AUR
yesterday. Can you test it please? If your problem persists I will try
to follow your suggestion.

The version on AUR seems to still be for 0.37 (and I still get the build error, pasted below). Did you mean to attach an updated PKGBUILD?

No, I really uploaded my PKGBUILD for 0.38 to AUR yesterday using aurup. Seems it never made it to the server. Will try again, but see attachment now.

F

pkgname=perl-text-bibtex
_cpanname=Text-BibTeX
pkgver=0.38
pkgrel=1
pkgdesc="Parse BibTeX files"
arch=('i686' 'x86_64')
url="http://search.cpan.org/~Text/${_cpanname}";
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/A/AM/AMBS/Text/${_cpanname}-${pkgver}.tar.gz)
 
md5sums=('e1c9f45e17af5ff2b5e5e0e0d574a49f')

build() {
  if [ "${CARCH}" = "x86_64" ]; then
    export CFLAGS="${CFLAGS} -fPIC"
  fi

  cd $srcdir/${_cpanname}-${pkgver}
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 
  make || return 1
  make install DESTDIR=$pkgdir || return 1
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}

Reply via email to