aboutsummaryrefslogtreecommitdiffstats
path: root/testing/netdisco/APKBUILD
blob: a849e1971b168a399d1976b8bffb0281e3152818 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=netdisco
_pkgreal=App-Netdisco
pkgver=2.036008
pkgrel=0
pkgdesc="An open source web-based network management tool."
url="http://search.cpan.org/dist/App-Netdisco/"
arch="noarch"
license="bsd"
cpandepends="perl-dancer-plugin-passphrase perl-data-printer perl-plack perl-ldap
	perl-file-sharedir perl-starman perl-socket6 perl-json-xs perl-netaddr-mac
	perl-anyevent perl-uri perl-dancer-plugin-dbic perl-template-plugin-csv
	perl-try-tiny perl-snmp-info perl-list-moreutils perl-dbix-class
	perl-anyevent-dns-etchosts perl-daemon-control perl-file-slurper perl-moo
	perl-io-socket-ssl perl-role-tiny perl-algorithm-cron perl-sereal
	perl-template-plugin-number-format perl-json perl-dbix-class-helpers
	perl-dancer-plugin-auth-extensible perl-sql-translator perl-path-class
	perl-template-toolkit perl-url-encode perl-dancer perl-plack-middleware-reverseproxy
	perl-namespace-clean perl-cgi-expand perl-html-parser perl-net-dns
	perl-dancer-session-cookie perl-yaml-libyaml perl-netaddr-ip
	perl-guard perl-mce perl-plack-middleware-expires perl-dbd-pg"
# perl-app-local-lib-helper perl-app-cpanminus
cpanmakedepends=""
cpancheckdepends="perl-env-path"
depends="perl-term-ui perl-archive-extract $cpandepends"
makedepends="perl-dev perl-module-build $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL installdirs=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	./Build
}

package() {
	cd "$builddir"
	./Build install destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	cd "$builddir"
	./Build test
}

sha512sums="658346ac6139a736f418008265ed7ccecd6588065c6aebf7403d1e28617c065a032996b3739199f80119d87306a6ec8d9ab89ab7b5de1ca3911a4d04679d0c61  App-Netdisco-2.036008.tar.gz"