blob: 7d83918d23a694aa24ec333413a9c4132be7b72c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Einhard Leichtfuß <alguien@respiranto.de>
_extname=LDAPAuthentication2
_extname_lowercase="${_extname,,}"
_pkgname_base="mediawiki-extension-${_extname_lowercase}"
pkgname="${_pkgname_base}-git"
pkgver=r98.502759b
pkgrel=2
pkgdesc="MediaWiki extension for LDAP authentication"
arch=('any')
url="https://www.mediawiki.org/wiki/Extension:${_extname}"
license=('GPL')
depends=('mediawiki'
'mediawiki-extension-ldapprovider'
'mediawiki-extension-pluggableauth')
makedepends=('git')
provides=("$_pkgname_base")
conflicts=("$_pkgname_base")
source=("git+https://gerrit.wikimedia.org/r/mediawiki/extensions/${_extname}")
sha512sums=('SKIP')
pkgver()
{
cd "${_extname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package()
{
local ext_dir="/usr/share/webapps/mediawiki/extensions/${_extname}"
install -d -m755 "${pkgdir}${ext_dir}"
cd "${_extname}"
find . -mindepth 1 -maxdepth 1 -regextype posix-extended \
\! -regex './\.git(|ignore|review)' \
-exec cp -RP '{}' "${pkgdir}${ext_dir}/" \;
}
|