aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-mcrypt/APKBUILD
blob: 00a1b47000f708b3c924a709387d9b7471b70b4c (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.3
pkgrel=3
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="ef215b576b471d6e1ecac4bb097f518fa57fd551b678b7fdddd9d5058f6667b0ee757e887f00b61672b89cd86f1962cbfe0e355681fa47daba9873c3bf4db679  php-pecl-mcrypt-1.0.3.tgz"