summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreolianoe2015-06-27 22:30:16 +0200
committereolianoe2015-06-27 22:30:16 +0200
commit8ad56392cdac9e1e4486d750f21bd88170700310 (patch)
treed77d38e86e6149df5c6a4dff8bf21a79622530e9
parentc1b13ec0ef10f964cbc54a2d39354518009f6350 (diff)
downloadaur-8ad56392cdac9e1e4486d750f21bd88170700310.tar.gz
Fix filename
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD16
2 files changed, 11 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e346cd2bbec..d6f990cf969 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = vim-fortran
pkgdesc = Additional indentation rules for Fortran 95 and Fortran 90
pkgver = 0.4
- pkgrel = 1
+ pkgrel = 2
url = http://www.vim.org/scripts/script.php?script_id=2299
install = vimdoc.install
arch = i686
@@ -9,8 +9,8 @@ pkgbase = vim-fortran
groups = vim-plugins
license = custom
depends = vim
- source = vim-fortran::http://www.vim.org/scripts/download_script.php?src_id=15717
- md5sums = 2dd6ae6ff44facee2f673b898482679b
+ source = fortran.vim::http://www.vim.org/scripts/download_script.php?src_id=15717
+ sha256sums = d3c67714ed9248397b513366126e1dc61f6bd2081c96849a8ea5f0a0282662f9
pkgname = vim-fortran
diff --git a/PKGBUILD b/PKGBUILD
index e3a1aa59da2..e5b9df532f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=vim-fortran
_filename=fortran.vim
pkgver=0.4
_scriptid=15717
-pkgrel=1
+pkgrel=2
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"
@@ -12,18 +12,18 @@ 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')
+source=(${_filename}::http://www.vim.org/scripts/download_script.php?src_id=${_scriptid})
+sha256sums=('d3c67714ed9248397b513366126e1dc61f6bd2081c96849a8ea5f0a0282662f9')
prepare(){
- cd $srcdir
+ 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
+ iconv -f ISO_8859-16 -t UTF8 ${_filename} > ${_filename}.new
+ tr -d '\015' < ${_filename}.new > ${_filename}.new.new
}
package(){
- install -Dm755 ${srcdir}/${_filename} ${pkgdir}/usr/share/vim/vimfiles/after/indent/$_filename
+ install -Dm755 "${srcdir}/${_filename}.new.new"\
+ "${pkgdir}/usr/share/vim/vimfiles/after/indent/${_filename}"
}