summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlex Lobtsov2015-09-24 19:03:33 +0400
committerAlex Lobtsov2015-09-24 19:03:33 +0400
commitd9b6e167c636749ee1b713c549ad9d5fe7cd76d7 (patch)
tree0335a80eb3f54ecdd778373e7f65038b66390638 /PKGBUILD
parent4316b6107d0cf72009a5ea292e1abf75587d269b (diff)
downloadaur-d9b6e167c636749ee1b713c549ad9d5fe7cd76d7.tar.gz
now using git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 15 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 835f5f5859b..8b5c39ed431 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Alex "grevus" Lobtsov <alex@lobtsov.com>
pkgname=php-browscap
-pkgver=6004
+pkgver=6006
pkgrel=1
pkgdesc="PHP browscap"
url="http://browscap.org/"
@@ -8,6 +8,7 @@ arch=('x86_64' 'i686')
license=('PHP')
depends=(
'php'
+ 'curl'
)
backup=(
'etc/php/conf.d/browscap.ini'
@@ -15,15 +16,22 @@ backup=(
)
source=(
- browscap.source.ini::http://browscap.org/stream?q=Full_PHP_BrowsCapINI
+ https://github.com/browscap/browscap/archive/${pkgver}.tar.gz
browscap.conf.ini
)
-sha256sums=('2af2e9d00b95c8fb8d0fab99de853e567823160122e73e792548c5cf078e184b'
- 'ab973c3fd8d4842430f70d144278c150061b6e2ff77d7b367f9921fa728ad169')
+build() {
+ cd "browscap-$pkgver"
+ curl -s https://getcomposer.org/installer | php
+ php composer.phar install
+ bin/browscap build ${pkgver}
+}
package() {
- cd "$srcdir"
- install -Dm644 browscap.source.ini "$pkgdir/etc/php/extra/browscap.ini"
- install -Dm644 browscap.conf.ini "$pkgdir/etc/php/conf.d/browscap.ini"
+ cd "browscap-$pkgver"
+ install -Dm644 build/full_php_browscap.ini "$pkgdir/etc/php/extra/browscap.ini"
+ install -Dm644 ${srcdir}/browscap.conf.ini "$pkgdir/etc/php/conf.d/browscap.ini"
}
+
+sha256sums=('2b779cb9953b796e7a276bd14b20c74895cc7d5e4efbd1eecd7e9086717fe3ca'
+ 'ab973c3fd8d4842430f70d144278c150061b6e2ff77d7b367f9921fa728ad169')