[arch-commits] Commit in php-geoip/repos (2 files)

Pierre Schmitz pierre at archlinux.org
Sun Dec 3 14:02:52 UTC 2017


    Date: Sunday, December 3, 2017 @ 14:02:51
  Author: pierre
Revision: 271979

archrelease: copy trunk to community-staging-x86_64

Added:
  php-geoip/repos/community-staging-x86_64/
  php-geoip/repos/community-staging-x86_64/PKGBUILD
    (from rev 271978, php-geoip/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: php-geoip/repos/community-staging-x86_64/PKGBUILD (from rev 271978, php-geoip/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-03 14:02:51 UTC (rev 271979)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=php-geoip
+pkgver=1.1.1
+pkgrel=3
+pkgdesc="GeoIP module for PHP"
+arch=('x86_64')
+url="http://pecl.php.net/package/geoip"
+license=('PHP')
+depends=('php' 'geoip')
+makedepends=('subversion')
+backup=('etc/php/conf.d/geoip.ini')
+source=(https://pecl.php.net/get/geoip-$pkgver.tgz)
+sha256sums=('b2d05c03019d46135c249b5a7fa0dbd43ca5ee98aea8ed807bc7aa90ac8c0f06')
+
+build() {
+  cd "$srcdir/geoip-$pkgver"
+
+  phpize
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd "$srcdir/geoip-$pkgver"
+
+  make INSTALL_ROOT="$pkgdir" install
+  echo ';extension=geoip.so' >geoip.ini
+  install -Dm644 geoip.ini "$pkgdir/etc/php/conf.d/geoip.ini"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list