You are not logged in.
Here is a PKGBUILD to install Net-Patricia 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-net-patricia
pkgver=1.010
pkgrel=1
pkgdesc="Perl Module: Patricia Trie perl module for fast IP address lookups"
depends=('glibc' 'perl')
makedepends=('findutils')
#backup=()
source=(http://www.cpan.org/modules/by-module/Net/Net-Patricia-$pkgver.tar.gz)
url="http://search.cpan.org/dist/Net-Patricia/"
md5sums=('19f0c6944769daba64694ee3c72cf286')
build() {
cd $startdir/src/Net-Patricia-$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