summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Otto2017-08-22 17:44:00 +0200
committerMarkus Otto2017-08-22 17:44:00 +0200
commit7aeea9a78189ee5edc74ea655b971d67b5019be2 (patch)
tree1689001ca6f81b1afaa94f66a2fb625a2afc89e3
downloadaur-php-xdiff.tar.gz
add version 2.0.1
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD36
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bc099a839d7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = php-xdiff
+ pkgdesc = A file differences/patches module for PHP
+ pkgver = 2.0.1
+ pkgrel = 0
+ url = https://pecl.php.net/package/xdiff
+ arch = i686
+ arch = x86_64
+ license = PHP
+ depends = php
+ depends = libxdiff
+ source = https://pecl.php.net/get/xdiff-2.0.1.tgz
+ sha256sums = b4ac96c33ec28a5471b6498d18c84a6ad0fe2e4e890c93df08e34061fba7d207
+
+pkgname = php-xdiff
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..72e8ffc0db8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c869dbcb390
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Markus Otto <otto@fs.tum.de>
+
+pkgname=php-xdiff
+pkgver=2.0.1
+pkgrel=0
+arch=('i686' 'x86_64')
+pkgdesc='A file differences/patches module for PHP'
+url='https://pecl.php.net/package/xdiff'
+depends=('php' 'libxdiff')
+license=('PHP')
+source=("https://pecl.php.net/get/xdiff-$pkgver.tgz")
+sha256sums=('b4ac96c33ec28a5471b6498d18c84a6ad0fe2e4e890c93df08e34061fba7d207')
+
+build() {
+ cd $srcdir/xdiff-$pkgver
+
+ phpize
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd $srcdir/xdiff-$pkgver
+
+ export REPORT_EXIT_STATUS=1
+ export NO_INTERACTION=1
+ export SKIP_ONLINE_TESTS=1
+ export SKIP_SLOW_TESTS=1
+ make test
+}
+
+package() {
+ cd $srcdir/xdiff-$pkgver
+
+ make INSTALL_ROOT=$pkgdir install
+}