mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-22 08:12:21 +01:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# 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"
|