summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD30
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d7df959d634
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = vim-mediawiki
+ pkgdesc = Vim support for MediaWiki markup used on Wikipedia
+ pkgver = 20110919
+ pkgrel = 2
+ url = http://www.vim.org/scripts/script.php?script_id=1787
+ arch = any
+ license = CCPL:by-sa
+ makedepends = ed
+ depends = vim
+ source = Wikipedia.tar.gz::http://www.vim.org/scripts/download_script.php?src_id=16886
+ sha256sums = 9079c52960e00f8cf095157ea5342a881f1d91fe891276bfb48cafa7b3689fb7
+
+pkgname = vim-mediawiki
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..58d9f54daec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id$
+
+pkgname=vim-mediawiki
+pkgver=20110919
+pkgrel=2
+pkgdesc='Vim support for MediaWiki markup used on Wikipedia'
+url="http://www.vim.org/scripts/script.php?script_id=1787"
+license=('CCPL:by-sa')
+arch=('any')
+depends=('vim')
+makedepends=('ed')
+source=("Wikipedia.tar.gz::http://www.vim.org/scripts/download_script.php?src_id=16886")
+sha256sums=('9079c52960e00f8cf095157ea5342a881f1d91fe891276bfb48cafa7b3689fb7')
+
+prepare() {
+ cd 'Wikipedia'
+
+ # kill trailing whitespace
+ # ed -s ftdetect/mediawiki.vim <<< $',s/\ *$//g\nw'
+
+ # kill stuff that should be in an ftplugin
+ ed -s ftdetect/mediawiki.vim <<< $'5,$d\nw'
+}
+
+package() {
+ cd 'Wikipedia'
+
+ install -Dm644 ftdetect/mediawiki.vim "$pkgdir/usr/share/vim/vimfiles/ftdetect/mediawiki.vim"
+ install -Dm644 syntax/mediawiki.vim "$pkgdir/usr/share/vim/vimfiles/syntax/mediawiki.vim"
+}