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

pkgname=perl-string-copyright
pkgver=0.003014
pkgrel=1
pkgdesc="Representation of text-based copyright statements"
arch=('any')
url="https://salsa.debian.org/build-common-team/string-copyright"
license=('AGPL-3.0-or-later')
depends=('perl' 'perl-exporter-tiny' 'perl-set-intspan')
checkdepends=('perl-test2-suite' 'perl-test-without-module')
optdepends=('perl-re-engine-re2')
source=("https://www.cpan.org/modules/by-module/String/String-Copyright-${pkgver}.tar.gz")
sha512sums=('39874b267fcd01e6ffbcdae15af74918fddcb586c2f0708ba30b47957a4e6613689776b9e80a649689374a913b2c6c285ed58823620b6553cd56d6d99e632f08')

build() {
  cd "${srcdir}/String-Copyright-${pkgver}"

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

check() {
  cd "${srcdir}/String-Copyright-${pkgver}"

  make test
}

package() {
  cd "${srcdir}/String-Copyright-${pkgver}"

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