summaryrefslogtreecommitdiff
path: root/pcr/git-remote-mediawiki/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-12 16:32:55 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-12 16:32:55 -0300
commite3acfdf0b0b71c3180b756bdc7ff4a8090bb5e00 (patch)
treeda2f71ca3469aea362df4b9885b01bcc068bfc91 /pcr/git-remote-mediawiki/PKGBUILD
parent6abc75d5f0c4d5c8302715a7da59cc02d22fbe36 (diff)
parent8d0f4ac4cbf56fc5c5cadb5ba09c35e3674a886b (diff)
downloadabslibre-e3acfdf0b0b71c3180b756bdc7ff4a8090bb5e00.tar.gz
abslibre-e3acfdf0b0b71c3180b756bdc7ff4a8090bb5e00.tar.bz2
abslibre-e3acfdf0b0b71c3180b756bdc7ff4a8090bb5e00.zip
Merge branch 'master' of vparabola:abslibre
Conflicts: pcr/tomb/PKGBUILD
Diffstat (limited to 'pcr/git-remote-mediawiki/PKGBUILD')
-rw-r--r--pcr/git-remote-mediawiki/PKGBUILD29
1 files changed, 14 insertions, 15 deletions
diff --git a/pcr/git-remote-mediawiki/PKGBUILD b/pcr/git-remote-mediawiki/PKGBUILD
index 8fb47724a..d5ffd33be 100644
--- a/pcr/git-remote-mediawiki/PKGBUILD
+++ b/pcr/git-remote-mediawiki/PKGBUILD
@@ -1,10 +1,12 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
pkgname=git-remote-mediawiki
url=https://github.com/moy/Git-Mediawiki/wiki
license=('GPL') # GPLv2+
pkgdesc="Support for MediaWiki remotes in git"
-pkgver=1.8.5.1
-pkgrel=2
+pkgver=1.9.2
+pkgrel=1
arch=('any')
depends=(
git
@@ -14,18 +16,15 @@ depends=(
perl-mediawiki-api
)
-_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
+ local _mwdir=/usr/share/git/mw-to-git
+ local _perldir=/usr/share/perl5/vendor_perl
+ local _gitdir=/usr/lib/git-core
+
+ install -d "$pkgdir"/$_perldir/Git
+ install -d "$pkgdir"/$_gitdir
+
+ ln -srT "$pkgdir"/${_mwdir}/Git/Mediawiki.pm "$pkgdir"/${_perldir}/Git/Mediawiki.pm
+ ln -srT "$pkgdir"/${_mwdir}/git-mw.perl "$pkgdir"/${_gitdir}/git-mw
+ ln -srT "$pkgdir"/${_mwdir}/git-remote-mediawiki.perl "$pkgdir"/${_gitdir}/git-remote-mediawiki
}