# Maintainer: Jakob Gahde _pkgname=php-wikidiff2 pkgname=${_pkgname}-git pkgver=1.4.1.r0.26738b5 pkgrel=1 pkgdesc="A PHP module that provides the external diff engine for MediaWiki" arch=('i686' 'x86_64') license=('GPL') url='https://www.mediawiki.org/wiki/Extension:Wikidiff2' depends=('php' 'libthai') makedepends=('git') provides=("${_pkgname}=${pkgver}") conflicts=("${_pkgname}") source=("git+https://gerrit.wikimedia.org/r/p/mediawiki/php/wikidiff2.git") md5sums=('SKIP') pkgver() { cd "${srcdir}/wikidiff2" printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } build() { cd "${srcdir}/wikidiff2" phpize ./configure make } package() { cd "${srcdir}/wikidiff2" make install INSTALL_ROOT="${pkgdir}" }