aboutsummaryrefslogtreecommitdiffstats
path: root/main/php-fileinfo/APKBUILD
blob: 29b170ba79831362a3fb81a5f3bbba18a3924a51 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-fileinfo
pkgver=1.0.4
pkgrel=1
pkgdesc="This extension allows retrieval of information regarding vast majority of file."
url="http://pecl.php.net/package/Fileinfo"
arch="x86 x86_64"
license="PHP"
depends="file php"
makedepends="autoconf php-dev file-dev"
install=""
source="http://pecl.php.net/get/Fileinfo-$pkgver.tgz
	magic.patch"

build ()
{
	cd $srcdir/Fileinfo-$pkgver
	patch -p1 -i "$srcdir"/magic.patch || return 1
	phpize || return 1
	./configure --prefix=/usr || return 1
	make || return 1
	make INSTALL_ROOT="$pkgdir" install || return 1
	echo ';extension=fileinfo.so' > fileinfo.ini
	install -D -m644 fileinfo.ini "$pkgdir"/etc/php/conf.d/fileinfo.ini
}
md5sums="2854e749db157365c769cb9496f5586f  Fileinfo-1.0.4.tgz
e2689b892a795f1b9c601997dd48edab  magic.patch"