summaryrefslogtreecommitdiffstats
path: root/main/php-fileinfo/APKBUILD
blob: 8e72f404c3cf8802f40182339f6aae1e07c2f252 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-fileinfo
pkgver=1.0.4
pkgrel=0
pkgdesc="This extension allows retrieval of information regarding vast majority of file."
url="http://pecl.php.net/package/Fileinfo"
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"