aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-mcrypt/APKBUILD
blob: f97a286a4fb85aba916b7c3f41540fe3f1363840 (plain) (blame)
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
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-pecl-mcrypt
_extname=mcrypt
pkgver=1.0.4
pkgrel=0
pkgdesc="Provides PHP 7 bindings for the unmaintained libmcrypt - PECL"
url="https://pecl.php.net/package/mcrypt"
arch="all"
license="PHP-3.01"
depends="php7-common"
makedepends="php7-dev libmcrypt-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-mcrypt=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-mcrypt" # for backward compatibility

build() {
	phpize7
	./configure --prefix=/usr --with-php-config=php-config7
	make
}

check() {
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	local _confdir="$pkgdir"/etc/php7/conf.d
	install -d $_confdir
	echo "extension=$_extname" > $_confdir/$_extname.ini
}

sha512sums="6a8244761035640366041a5f26057ab14bb85eaaa973ddf604e152b786ef750ec775ae91d7582044700d6fdef902425f3a9d6839113a52e0a9f957bf9d0c189a  php-pecl-mcrypt-1.0.4.tgz"