summaryrefslogtreecommitdiffstats
path: root/main/php-fileinfo/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-24 08:01:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-24 08:01:31 +0000
commitb70981b68efcce5256eb11c6cd26ae123b10b6ea (patch)
treea38be6efae5e2ba15c2e839504632f9b7bfd5f91 /main/php-fileinfo/APKBUILD
parent2b4df81538b8398442d5296650905c70341dd8d3 (diff)
downloadaports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.bz2
aports-b70981b68efcce5256eb11c6cd26ae123b10b6ea.tar.xz
moved extra/* to main/
and fixed misc build issues
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"