aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-cwmp/APKBUILD
blob: 155b12cd4f4c4d4690291e5308438a3ed9bc21ce (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=perl-cwmp
pkgver=0_git20150919
pkgrel=1
pkgdesc="Perl ACS server implementing CWMP protocol to manage CPE clients"
url="https://github.com/dpavlin/perl-cwmp"
arch="noarch"
license="GPL2"
depends="perl-class-accessor perl-data-dump perl-file-remove 
	perl-file-slurp perl-hash-merge perl-module-install perl-ipc-dirqueue
	perl-module-pluggable perl-pathtools perl-xml-bare perl-xml-generator
	perl-yaml-syck perl-yaml-tiny perl-json-xs perl-yaml perl-common-sense
	perl-types-serialiser perl-net-http perl-dbm-deep perl-term-shelly
	perl-term-readkey"
depends_dev=
makedepends="perl $depends_dev"
install=
subpackages="$pkgname-doc"
source="http://dev.alpinelinux.org:/archive/$pkgname/$pkgname-$pkgver.tar.gz
	"
giturl="https://github.com/dpavlin/perl-cwmp"
disturl="http://dev.alpinelinux.org:/archive/$pkgname"

_builddir="$srcdir"/$pkgname-$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
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	for file in acs cli cpe-queue dump dump2test; do
		install -D -m0755 bin/${file}.pl "$pkgdir"/usr/bin/${file}.pl
	done
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="5533317abb05a198e3ffab05fa848279  perl-cwmp-0_git20150919.tar.gz"
sha256sums="b2855523017734caa80f6d1e0ed21df23571a597dcd4269ea77195feabdf4534  perl-cwmp-0_git20150919.tar.gz"
sha512sums="92211a11c7b23a939211aca51e5f26856fd4451c0b9f0743f622c1df2fa934020dd1bb9427947c668462a9beae106c08366167080556a52179e6b92a76e35588  perl-cwmp-0_git20150919.tar.gz"