aboutsummaryrefslogtreecommitdiffstats
path: root/main/sendpage/APKBUILD
blob: 7e345a6e2ec256faef65e74f51f8a761d1669270 (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
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=sendpage
pkgver=1.0.3
_pkgver=1.000003
pkgrel=2
pkgdesc="SNPP server, client, queueing engine, modem control and TAP system"
url="http://www.sendpage.org"
arch="noarch"
license="GPL"
depends=
makedepends="perl-dev perl-mail-tools perl-net-snpp perl-device-serialport
	perl-dbi perl-sys-hostname-long perl-test-mockobject"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$_pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$_pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	perl ./Makefile.PL \
		PREFIX="/usr" \
		INSTALLSITELIB="/usr/lib/perl5/vendor_perl" \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	# Remove useless folder, since it has nothing of value in it
	rm -r "$pkgdir"/usr/local
	# Prevent perl file collisions
	find "$pkgdir" -name perllocal.pod -delete
}

md5sums="586afe41d6cd82d045fdc34ccf99cab3  sendpage-1.000003.tar.gz"