blob: 1975f19eb094f5ab0f3ced9d21c356b445ea46e6 (
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
|
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
}
|