summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMassimiliano Torromeo2012-06-25 16:56:23 +0200
committerMassimiliano Torromeo2012-06-25 16:56:23 +0200
commit62cd1778de910e05793efdf37cf0de0a3450826c (patch)
tree6be14312f2dbabe67a8ff95406ac54da862a8a48
downloadaur-62cd1778de910e05793efdf37cf0de0a3450826c.tar.gz
Add package for php oauth extension
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD30
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..276a012d578
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = php-oauth
+ pkgdesc = PHP extension to provide OAuth consumer and provider bindings.
+ pkgver = 1.2.3
+ pkgrel = 1
+ url = http://www.php.net/manual/en/intro.oauth.php
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = php
+ backup = etc/php/conf.d/oauth.ini
+ source = http://pecl.php.net/get/oauth-1.2.3.tgz
+ sha256sums = 86bb5ee37afe672d4532ad784c7f711855c79f0dabf0acacafd5344ab6cf0195
+
+pkgname = php-oauth
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1ede5f100be
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+
+pkgname=php-oauth
+_extname=oauth
+pkgver=1.2.2
+pkgrel=1
+pkgdesc="PHP extension to provide OAuth consumer and provider bindings."
+arch=("i686" "x86_64")
+url="http://www.php.net/manual/en/intro.oauth.php"
+license=('BSD')
+depends=('php')
+source=("http://pecl.php.net/get/$_extname-$pkgver.tgz")
+backup=("etc/php/conf.d/$_extname.ini")
+md5sums=('9a9f35e45786534d8580abfffc8c273c')
+
+build() {
+ cd "$srcdir/$_extname-$pkgver"
+
+ phpize
+ ./configure
+ make
+
+ install -m0755 -d "$pkgdir/etc/php/conf.d/"
+ install -m0644 -D "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+ echo "extension=$_extname.so" > "$pkgdir/etc/php/conf.d/$_extname.ini"
+ chmod 0644 "$pkgdir/etc/php/conf.d/$_extname.ini"
+ install -m0755 -D ".libs/$_extname.so" "$pkgdir$(php-config --extension-dir)/$_extname.so"
+}
+
+# vim:set ts=2 sw=2 et: