You are not logged in.

#1 2005-01-13 18:09:59

BlueRaven
Member
Registered: 2004-10-28
Posts: 14

[NEW] perl-boulder

Here is a PKGBUILD to install Boulder Perl module into your Arch.
Perl modules are quite annoying to package, I digged into the Perl documentation but it was quite difficult to get some useful info out of it.
I also looked to existing packages and saw it's quite a mess (different packaging styles and different ways to adapt them to the Arch way).
I hope my choices are correct, please feel free to provide me with any feedback if there's a better way to have the work done.

pkgname=perl-boulder
pkgver=1.30
pkgrel=1
pkgdesc="Perl Module: Simple stream-oriented format for transmitting data objects"
depends=('perl' 'perlxml')
makedepends=('findutils')
#backup=()
source=(http://www.cpan.org/modules/by-module/Boulder/Boulder-$pkgver.tar.gz)
url="http://search.cpan.org/dist/Boulder/"
md5sums=('87b37e890c959d4ab567614263d64953')

build() {
  cd $startdir/src/Boulder-$pkgver
  perl Makefile.PL PREFIX=/usr DESTDIR=$startdir/pkg
  make || return 1
  make test || return 1
  make DESTDIR=$startdir/pkg install

  # Remove unneeded files.
  #
  find $startdir/pkg -name perllocal.pod -exec rm -f {} ;
  find $startdir/pkg -name Boulder.pod -exec rm -f {} ;
  find $startdir/pkg -name .packlist -exec rm -f {} ;
}

Offline

Board footer

Powered by FluxBB