summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dewender2015-06-06 12:30:40 +0200
committerJohannes Dewender2015-06-06 12:30:40 +0200
commit27f30272b204ba8c72969807d53602253bf6a841 (patch)
tree31acddebcdf17a56da3acb83629ee2bf060a6e38
parentef28fce003c6e13574f05e31dc4fc859003e1a67 (diff)
downloadaur-27f30272b204ba8c72969807d53602253bf6a841.tar.gz
php-musicbrainz: add optional dependencies
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD11
2 files changed, 12 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a1335e11532..081b20fc80d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,13 @@
pkgbase = php-musicbrainz
pkgdesc = PHP library to access MusicBrainz's Web Service v2
pkgver = 0.2.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/mikealmond/MusicBrainz
arch = any
license = MIT
- depends = php>=5
+ depends = php>=5.3.8
+ optdepends = guzzle: for the GuzzleHttpAdapter
+ optdepends = php-requests: for the RequestsHttpAdapter
source = https://github.com/mikealmond/MusicBrainz/archive/v0.2.1.tar.gz
sha256sums = 55ec80f4156a6ed0a5054bdc0c7d9c2473281f919fe1c9982b899f96a453b2b8
diff --git a/PKGBUILD b/PKGBUILD
index 72910ffc86d..a79ece86975 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,18 @@
-# Maintainer: Johannes Dewender arch at JonnyJD dot net
+# Contributor: Johannes Dewender arch at JonnyJD dot net
pkgname=('php-musicbrainz')
_pkgname=MusicBrainz
pkgver=0.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="PHP library to access MusicBrainz's Web Service v2"
arch=('any')
url="https://github.com/mikealmond/MusicBrainz"
license=('MIT')
-depends=('php>=5')
+depends=('php>=5.3.8')
+optdepends=(
+'guzzle: for the GuzzleHttpAdapter'
+'php-requests: for the RequestsHttpAdapter'
+)
+
source=(https://github.com/mikealmond/$_pkgname/archive/v$pkgver.tar.gz)
sha256sums=('55ec80f4156a6ed0a5054bdc0c7d9c2473281f919fe1c9982b899f96a453b2b8')