aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pear-net_smtp/APKBUILD
blob: df03542f30d6c757af30f181fd8d837b385560fe (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
_php=php7
pkgname=${_php}-pear-net_smtp
_pkgreal=Net_SMTP
pkgver=1.8.0
pkgrel=1
pkgdesc="An implementation of the SMTP protocol"
url="http://pear.php.net/package/Net_SMTP"
arch="noarch"
license="PHP"
depends="${_php}-pear ${_php}-pear-net_socket"
options="!check"
subpackages="$pkgname-doc"
source="http://download.pear.php.net/package/$_pkgreal-$pkgver.tgz"
builddir="$srcdir"/$_pkgreal-$pkgver

_phpdir="usr/share/${_php}"

package() {
	cd "$builddir"
	for dir in doc example test; do
		install -d "$pkgdir"/$_phpdir/$dir/$_pkgreal
	done
	mv docs "$pkgdir"/$_phpdir/doc/$_pkgreal
	mv examples "$pkgdir"/$_phpdir/example/$_pkgreal
	mv tests "$pkgdir"/$_phpdir/test/$_pkgreal
	install -d "$pkgdir"/$_phpdir/PEAR
	mv Net "$pkgdir"/$_phpdir/PEAR
	install -Dm0644 LICENSE "$pkgdir"/$_phpdir/doc/$_pkgreal/LICENSE
}

doc() {
	cd "$builddir"
	install -d "$subpkgdir"/$_phpdir/doc
	mv "$pkgdir"/$_phpdir/doc/$_pkgreal \
		"$subpkgdir"/$_phpdir/doc
}

sha512sums="894397aea9a0dd7a85544040a3ccee5c22779ad0d473fd63710845f2ecc4efc0103046ee893eee84c1a5afbbfb78a06849f40c486a3ecaaf798fd5d046acf42c  Net_SMTP-1.8.0.tgz"