aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-dancer-plugin-swig/APKBUILD
blob: 03288284040a9e2ddcecd02660ee9943bf32cfb5 (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
# Contributor:
# Maintainer:
pkgname=perl-dancer-plugin-swig
_pkgreal=Dancer-Plugin-Swig
pkgver=0.02
pkgrel=0
pkgdesc="A plugin for swig client"
url="http://search.cpan.org/dist/Dancer-Plugin-Swig/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl perl-dancer perl-webservice-swigclient"
cpanmakedepends="perl-test-most perl-test-easy"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LO/LOGIE/$_pkgreal-$pkgver.tar.gz"

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

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

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make && make test
}

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

md5sums="15776c04e45734be860a74211ac535c6  Dancer-Plugin-Swig-0.02.tar.gz"
sha256sums="ea67214c5915634736a55df09e8228a74014d7c5c039a6c661e82d66490721a5  Dancer-Plugin-Swig-0.02.tar.gz"
sha512sums="81a72c1af8a2e7e9c01b0a6c7d79d54f54eda3fa1394670108d516ab1688a9bbce7e1130fba6e2d08d5feb8342dd2cf3c6c3541db4a0f69fd3b22b3595c3652f  Dancer-Plugin-Swig-0.02.tar.gz"