summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e99c2383ed4ec1a97d043bd9d94a8955ded2d0c (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
# Maintainer: lakejason0 <lakesarchive@outlook.com>

_extensionname=EditCountNeue
_extensionname_lowercase="${_extensionname,,}"
_pkgname_base="mediawiki-extension-${_extensionname_lowercase}"

pkgname=${_pkgname_base}-git
pkgver=0.4.3.r13.gdba1a16
pkgrel=1
pkgdesc='EditCountNeue MediaWiki extension allows wikis to display the number of edits of a user, via a special page or a parser function.'
arch=('any')
url='https://www.mediawiki.org/wiki/Extension:EditCountNeue'
license=('GPL-2.0-or-later')
depends=('mediawiki')
makedepends=('git')
source=("git+https://github.com/AlPha5130/mediawiki-extensions-EditCountNeue.git")
sha512sums=('SKIP')

pkgver() {
	cd "mediawiki-extensions-$_extensionname"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	local extension_dir="/usr/share/webapps/mediawiki/extensions/${_extensionname}"

	install -d -m755 "${pkgdir}${extension_dir}"
	cd "mediawiki-extensions-${_extensionname}"
	find . -mindepth 1 -maxdepth 1 -regextype posix-extended \
		\! -regex './\.git(|ignore|review)' \
		-exec cp -RP '{}' "${pkgdir}${extension_dir}/" \;
}