You are not logged in.

#1 2005-01-13 18:05:20

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

[NEW] perl-html-table

Here is a PKGBUILD to install HTML-Table 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-html-table
pkgver=2.02
pkgrel=1
pkgdesc="Perl Module: Create HTML tables using simple interface"
depends=('perl')
makedepends=('findutils')
#backup=()
source=(http://www.cpan.org/modules/by-module/HTML/HTML-Table-$pkgver.tar.gz)
url="http://search.cpan.org/dist/HTML-Table/"
md5sums=('1c307b8fbb06d2ccbe08714632b418d9')

build() {
  cd $startdir/src/HTML-Table-$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 .packlist -exec rm -f {} ;
}

Offline

#2 2005-05-09 12:54:35

sihker
Member
Registered: 2005-04-22
Posts: 16

Re: [NEW] perl-html-table

Thanks for a nice template smile

Offline

#3 2005-05-09 13:18:44

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [NEW] perl-html-table

I second that.
Using the find command would be better than the current method of 'rm'ing the perllocal.pod and .packlist files manually.
P.S.-Have you uploaded the pkgbuild to the aur yet?

O.T.-Maybe the maintainers could use this template? I've built a few perl modules too, and not being knowledgable on shell commands, I've simply been copying the PKGBUILDs from abs. I would suggest you send a mail to the tur mailing list with this template.

Thanks

Offline

Board footer

Powered by FluxBB