summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ed1e79901b59aabfe83d8224cb14a5f485ccf4c (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
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=perl-class-inner
pkgver=0.200001
pkgrel=1
pkgdesc="A perlish implementation of Java like inner classes"
arch=('any')
url="https://metacpan.org/dist/Class-Inner"
license=('GPL' 'PerlArtistic')
depends=('perl')
source=("https://www.cpan.org/modules/by-module/Class/Class-Inner-${pkgver}.tar.gz")
sha512sums=('308d688577ac9eeea14bd665269d4f32f5f9c4be9ac47460c0d4be4248c3eaabb9eb51e9a840a5e8dab58e35cf10c831b55321fdc5a2c83e04eec88ba2b8f905')

build() {
  cd "${srcdir}/Class-Inner-${pkgver}"

  perl Makefile.PL NO_PACKLIST=true NO_PERLLOCAL=true
  make
}

check() {
  cd "${srcdir}/Class-Inner-${pkgver}"

  make test
}

package() {
  cd "${srcdir}/Class-Inner-${pkgver}"

  make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
}