summaryrefslogtreecommitdiffstats
path: root/main/php-fileinfo/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/php-fileinfo/APKBUILD')
-rw-r--r--main/php-fileinfo/APKBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/php-fileinfo/APKBUILD b/main/php-fileinfo/APKBUILD
new file mode 100644
index 000000000..8e72f404c
--- /dev/null
+++ b/main/php-fileinfo/APKBUILD
@@ -0,0 +1,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"