summaryrefslogtreecommitdiff
path: root/pcr/git-remote-mediawiki
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-12-17 20:52:59 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-12-17 20:52:59 -0500
commit2ae18ab33a078f690593def4751997ca432153d7 (patch)
treea6a97a6dd6f0d8ff33608a2b30d31543f09b06da /pcr/git-remote-mediawiki
parentf01b81c5ee10b5fc0bf22db32507b62bddabb86d (diff)
add pcr/git-remote-mediawiki and dependencies
Diffstat (limited to 'pcr/git-remote-mediawiki')
-rw-r--r--pcr/git-remote-mediawiki/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/pcr/git-remote-mediawiki/PKGBUILD b/pcr/git-remote-mediawiki/PKGBUILD
new file mode 100644
index 000000000..1975f19eb
--- /dev/null
+++ b/pcr/git-remote-mediawiki/PKGBUILD
@@ -0,0 +1,25 @@
+pkgname=git-remote-mediawiki
+url=https://github.com/moy/Git-Mediawiki/wiki
+licence=(GPL) # GPLv2+
+pkgdesc="Support for MediaWiki remotes in git"
+
+pkgver=1.8.5.1
+pkgrel=1
+arch=('any')
+depends=(git perl-datetime-format-iso8601 perl-mediawiki-api perl-lwp-protocol-https)
+
+_symlink() {
+ local src=$1
+ local dst=$2
+ mkdir -p "${pkgdir}/${dst%/*}"
+ ln -s "$(realpath "$src" --relative-to="${dst%/*}")" "${pkgdir}/${dst}"
+}
+
+package() {
+ _mwdir=/usr/share/git/mw-to-git
+ _perldir=/usr/share/perl5/vendor_perl
+ _gitdir=/usr/lib/git-core
+ _symlink ${_mwdir}/Git/Mediawiki.pm ${_perldir}/Git/Mediawiki.pm
+ _symlink ${_mwdir}/git-mw.perl ${_gitdir}/git-mw
+ _symlink ${_mwdir}/git-remote-mediawiki.perl ${_gitdir}/git-remote-mediawiki
+}