summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreolianoe2015-06-09 11:45:08 +0200
committereolianoe2015-06-09 11:45:08 +0200
commitdc7f3d04d255aae71795d31c0de38609a5436513 (patch)
tree674558ca3446d6de45c02c69c44462d5321bbcc9
downloadaur-dc7f3d04d255aae71795d31c0de38609a5436513.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
-rw-r--r--vimdoc.install19
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e346cd2bbec
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = vim-fortran
+ pkgdesc = Additional indentation rules for Fortran 95 and Fortran 90
+ pkgver = 0.4
+ pkgrel = 1
+ url = http://www.vim.org/scripts/script.php?script_id=2299
+ install = vimdoc.install
+ arch = i686
+ arch = x86_64
+ groups = vim-plugins
+ license = custom
+ depends = vim
+ source = vim-fortran::http://www.vim.org/scripts/download_script.php?src_id=15717
+ md5sums = 2dd6ae6ff44facee2f673b898482679b
+
+pkgname = vim-fortran
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e3a1aa59da2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: eolianoe <eolianoe At GoogleMAIL DoT com>
+# Maintainer: Laszlo Papp <djszapi @ gmail at com>
+pkgname=vim-fortran
+_filename=fortran.vim
+pkgver=0.4
+_scriptid=15717
+pkgrel=1
+pkgdesc="Additional indentation rules for Fortran 95 and Fortran 90"
+arch=(i686 x86_64)
+url="http://www.vim.org/scripts/script.php?script_id=2299"
+license=('custom')
+depends=('vim')
+groups=('vim-plugins')
+install=vimdoc.install
+source=(${pkgname}::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid})
+md5sums=('2dd6ae6ff44facee2f673b898482679b')
+
+prepare(){
+ cd $srcdir
+
+ #Fix some encoding stuffs
+ iconv -f ISO_8859-16 -t UTF8 $pkgname > ${_filename}.bak
+ tr -d '\015' < ${_filename}.bak > ${_filename}
+ rm ${_filename}.bak
+}
+
+package(){
+ install -Dm755 ${srcdir}/${_filename} ${pkgdir}/usr/share/vim/vimfiles/after/indent/$_filename
+}
diff --git a/vimdoc.install b/vimdoc.install
new file mode 100644
index 00000000000..5246e5c2113
--- /dev/null
+++ b/vimdoc.install
@@ -0,0 +1,19 @@
+post_install() {
+ echo -n "Updating vim help tags..."
+ /usr/bin/vim --noplugins -u NONE -U NONE \
+ --cmd ":helptags /usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install
+}
+
+op=$1
+shift
+
+$op $*