# Contributor:  Jeff Bilyk <jbilyk@gmail.com>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-sys-hostname-long
_realname=Sys-Hostname-Long
pkgver=1.5
pkgrel=0
pkgdesc="Perl Module to get full hostname"
url="http://search.cpan.org/~scott/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl"
makedepends="perl-dev"
install=
subpackages=""
source="http://search.cpan.org/CPAN/authors/id/S/SC/SCOTT/$_realname-$pkgver.tar.gz"

_builddir="$srcdir/$_realname-$pkgver"

build() {
	cd $_builddir
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd $_builddir
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete

}

md5sums="a7d7a36fa6905bded4f6b7da94e37532  Sys-Hostname-Long-1.5.tar.gz"
sha256sums="e9186df3706a877efd6149f2c711d6cf87dd6cf72f6ab935ba8121b225b265cb  Sys-Hostname-Long-1.5.tar.gz"
sha512sums="e34a5f17e65eb9c8d3aa213a6d930be4d0b6981dae3bf600e782b0e9863e6584061285a894f9f54daff7520bcadbb3e8cd6b1f9f973ad1c1b72c79e9f588133b  Sys-Hostname-Long-1.5.tar.gz"
