summaryrefslogtreecommitdiffstats
path: root/linhes/perl-net-upnp/PKGBUILD
blob: 3d52651df9bb71b44c2af9ec72191de61b512b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Matt Harrison <matt@harrison.us.com>
# Maintained at: https://github.com/matt-h/aur-pkgbuilds
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Drew Gilbert <gilbert dot drew at gmail dot com>

pkgname=perl-net-upnp
pkgver=1.4.6
pkgrel=3
pkgdesc="Perl Module UPnP"
arch=('x86_64')
url="https://metacpan.org/release/Net-UPnP"
license=('BSD' 'PerlArtistic')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/S/SK/SKONNO/Net-UPnP-$pkgver.tar.gz")
depends=('perl')
sha256sums=('10ae135a8f72d399501166bc697a3b300fb739a6614aa54408e4e08bec1e91dc')

build() {
  cd "${srcdir}/Net-UPnP-${pkgver}"

  # install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/Net-UPnP-${pkgver}"

  make test
}

package() {
  cd "${srcdir}/Net-UPnP-${pkgver}"

  make install DESTDIR="${pkgdir}"

  # install license file
  install -Dm644 "README" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}