summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD29
-rw-r--r--browscap.conf.ini2
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b82066d7359
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = php-browscap
+ pkgdesc = PHP browscap
+ pkgver = 6004
+ pkgrel = 1
+ url = http://browscap.org/
+ arch = x86_64
+ arch = i686
+ license = PHP
+ depends = php
+ backup = etc/php/conf.d/browscap.ini
+ backup = etc/php/extra/browscap.ini
+ source = browscap.source.ini::http://browscap.org/stream?q=Full_PHP_BrowsCapINI
+ source = browscap.conf.ini
+ sha256sums = 2af2e9d00b95c8fb8d0fab99de853e567823160122e73e792548c5cf078e184b
+ sha256sums = ab973c3fd8d4842430f70d144278c150061b6e2ff77d7b367f9921fa728ad169
+
+pkgname = php-browscap
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..835f5f5859b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Alex "grevus" Lobtsov <alex@lobtsov.com>
+pkgname=php-browscap
+pkgver=6004
+pkgrel=1
+pkgdesc="PHP browscap"
+url="http://browscap.org/"
+arch=('x86_64' 'i686')
+license=('PHP')
+depends=(
+ 'php'
+)
+backup=(
+ 'etc/php/conf.d/browscap.ini'
+ 'etc/php/extra/browscap.ini'
+)
+
+source=(
+ browscap.source.ini::http://browscap.org/stream?q=Full_PHP_BrowsCapINI
+ browscap.conf.ini
+)
+
+sha256sums=('2af2e9d00b95c8fb8d0fab99de853e567823160122e73e792548c5cf078e184b'
+ 'ab973c3fd8d4842430f70d144278c150061b6e2ff77d7b367f9921fa728ad169')
+
+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"
+}
diff --git a/browscap.conf.ini b/browscap.conf.ini
new file mode 100644
index 00000000000..98726c1abc8
--- /dev/null
+++ b/browscap.conf.ini
@@ -0,0 +1,2 @@
+[browscap]
+browscap = /etc/php/extra/browscap.ini