aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-rt-extension-commandbymail/APKBUILD
blob: c2818925890887a84d8ce82a088d6e2d7a6622d5 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-rt-extension-commandbymail
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=RT-Extension-CommandByMail
pkgver=3.01
pkgrel=1
pkgdesc="RT4 extension to change metadata of a ticket via email"
url="https://metacpan.org/release/RT-Extension-CommandByMail/"
arch="noarch"
license="GPL-2.0-only"
depends="perl"
makedepends="rt4"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BP/BPS/RT-Extension-CommandByMail-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="a3b3104d589cf00e1aa05ef174dbaecbe182f1729db06ef91f850d9b552df5722b36bc929a373d4b055d0d693a24e6c2f4aafcd1f8bdaef8a3873556e61be753  RT-Extension-CommandByMail-3.01.tar.gz"