aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-rt-extension-commandbymail/APKBUILD
blob: f5d63c81c03921f59205a447dcdd5b9bbba9d596 (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
40
41
# Automatically generated by apkbuild-cpan, template 1
# Extensively modified from template to work with this perl module
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-rt-extension-commandbymail
_pkgreal=RT-Extension-CommandByMail
pkgver=3.00
pkgrel=0
pkgdesc="RT4 extension to change metadata of a ticket via email"
url="http://search.cpan.org/dist/RT-Extension-CommandByMail/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-mime-tools perl-universal-require"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="rt4 perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BP/BPS/RT-Extension-CommandByMail-$pkgver.tar.gz
	fix-build.patch"

# Running tests would require RT4 database to be available
options="!check"

builddir="$srcdir/$_pkgreal-$pkgver"

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

package() {
	cd "$builddir"
	make PERL_INSTALL_ROOT="$pkgdir" pure_install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist -o -name Test.pm \) -delete
	find "$pkgdir" -type d -delete 2> /dev/null
}

sha512sums="91ea0bd9f9aa32ee09635a910c5d082032bcd94170e22854833c1aa6aacdc68d54687d32cbc92b5e298e62812d23d2fe81e30acd55d11d6d2e910e210be8930c  RT-Extension-CommandByMail-3.00.tar.gz
75fd4f293da4beff01b7cc6511d040b350791e425736104cc9d382e6f172acf66cdbbbf5c02d500e70b3df773ad02af25a78a66c21c70079a7bc5ecc11e1812c  fix-build.patch"