archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-sys-hostname-long / trunk / PKGBUILD
blob7f0cf461d10363e2b5a4f0996c059aecb43eda3f
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Dale Blount <dale@archlinux.org>
4 pkgname=perl-sys-hostname-long
5 _realname=Sys-Hostname-Long
6 pkgver=1.5
7 pkgrel=8
8 pkgdesc="Perl module getting a full hostname"
9 arch=('any')
10 license=('PerlArtistic')
11 url="https://search.cpan.org/dist/${_realname}/"
12 depends=('perl')
13 checkdepends=('inetutils')
14 options=('!emptydirs')
15 source=(https://search.cpan.org/CPAN/authors/id/S/SC/SCOTT/${_realname}-${pkgver}.tar.gz)
16 md5sums=('a7d7a36fa6905bded4f6b7da94e37532')
18 build() {
19   cd "${srcdir}/${_realname}-${pkgver}"
20   # install module in vendor directories.
21   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
22   make
25 check() {
26   cd "${srcdir}/${_realname}-${pkgver}"
27   make test
30 package() {
31   cd "${srcdir}/${_realname}-${pkgver}"
32   make install DESTDIR="${pkgdir}"