summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-18 20:22:34 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-12-18 20:22:34 -0200
commite152b295c90812c5724fca1a2620175340affd9e (patch)
tree16029bf0cdab43f2a14da451c023f9d76f9f5a1e
parent31fa2b76a857d501a0eb00dbfd1569f6a757e9f0 (diff)
parent5e3b8e62a291527fe292e2575222bad07c59a522 (diff)
downloadabslibre-e152b295c90812c5724fca1a2620175340affd9e.tar.gz
abslibre-e152b295c90812c5724fca1a2620175340affd9e.tar.bz2
abslibre-e152b295c90812c5724fca1a2620175340affd9e.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
-rw-r--r--pcr/git-remote-mediawiki/PKGBUILD25
-rw-r--r--pcr/perl-mediawiki-api/PKGBUILD30
2 files changed, 55 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
+}
diff --git a/pcr/perl-mediawiki-api/PKGBUILD b/pcr/perl-mediawiki-api/PKGBUILD
new file mode 100644
index 000000000..7aa1fb64b
--- /dev/null
+++ b/pcr/perl-mediawiki-api/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Contributor (AUR): ryooichi <ryooichi+arch AT gmail DOT com>
+# Contributor (AUR): Uwe <keksvernichter AT gmail DOT com>
+
+_author=EXOBUZZ
+_perlmod=MediaWiki-API
+pkgname=perl-mediawiki-api
+pkgver=0.39
+pkgdesc="Perl interface to the MediaWiki API"
+license=('GPL3') # GPLv3+
+url="http://search.cpan.org/perldoc?MediaWiki::API"
+
+pkgrel=1
+
+depends=('perl-json-xs' 'perl-json')
+arch=('any')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/${_author:0:1}/${_author:0:2}/${_author}/${_perlmod}-${pkgver}.tar.gz)
+md5sums=('266b8f336241fd608b7094c830a30a55')
+
+build() {
+ cd "$srcdir/$_perlmod-$pkgver"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ cd "$srcdir/$_perlmod-$pkgver"
+ make install DESTDIR="$pkgdir/"
+}