aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php-blenc/APKBUILD
blob: 02ebdd0e13e1c35d854bfafd6789746ed67bec88 (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
# Maintainer: Diaz Devera Victor <vitronic2@gmail.com>

pkgname=php-blenc
pkgver=1.1.4b
pkgrel=0
pkgdesc="BLowfish ENCryption for PHP Scripts"
url="http://pecl.php.net/package/blenc"
arch="all"
license="PHP"
depends=
depends_dev="php-dev"
makedepends="$depends_dev autoconf"
install=""
subpackages=""
source="http://pecl.php.net/get/blenc-$pkgver.tgz"

_builddir="$srcdir/blenc-$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"
	phpize || return 1
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir/" install || return 1
	install -d "$pkgdir"/etc/php/conf.d || return 1
	echo "extension=blenc.so" > "$pkgdir"/etc/php/conf.d/blenc.ini
}

md5sums="90ab57bf63854f7927ae66c2b3a40a7d  blenc-1.1.4b.tgz"
sha256sums="9f366346b0f1f76aa0e3d301fbe2b65de4dff291560a9a3a89f52a592ed0eaf0  blenc-1.1.4b.tgz"
sha512sums="308011ae8ae3532e9bf6467bb90fe3fc26dfe9b49b10f76f9137e7529ca8b5040ebd750a87b221667db3cd180af5e11e517484fa43eaa5371e17ad0a96332c25  blenc-1.1.4b.tgz"