diff options
Diffstat (limited to 'main/php-fileinfo')
-rw-r--r-- | main/php-fileinfo/APKBUILD | 26 | ||||
-rw-r--r-- | main/php-fileinfo/magic.patch | 13 |
2 files changed, 39 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" diff --git a/main/php-fileinfo/magic.patch b/main/php-fileinfo/magic.patch new file mode 100644 index 000000000..7f939e8b8 --- /dev/null +++ b/main/php-fileinfo/magic.patch @@ -0,0 +1,13 @@ +--- a/config.m4 2006-11-07 22:31:19.000000000 +0100 ++++ b/config.m4 2009-04-19 20:23:37.923512186 +0200 +@@ -47,8 +47,8 @@ + -L$FILEINFO_DIR/lib + ]) + +- MAGIC_MIME_DIRS="/usr/local/share/file /usr/share/file /usr/share/misc/file /etc /usr/share/misc" +- MAGIC_MIME_FILENAMES="magic magic.mime" ++ MAGIC_MIME_DIRS="/usr/share/misc/file" ++ MAGIC_MIME_FILENAMES="magic.mgc" + + for i in $MAGIC_MIME_DIRS; do + for j in $MAGIC_MIME_FILENAMES; do |