diff options
author | Johannes Schlatow | 2021-11-12 10:42:18 +0100 |
---|---|---|
committer | Johannes Schlatow | 2021-11-12 10:42:18 +0100 |
commit | 8955cc443dff823f98587d9ca8b6512219734017 (patch) | |
tree | 5d41f2845d0f8503003c0c659b50ba0eecaf7a8d /PKGBUILD | |
parent | 449386d58c82b53490325d34650bee8bbcfef259 (diff) | |
download | aur-8955cc443dff823f98587d9ca8b6512219734017.tar.gz |
last update broke installation
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 27 insertions, 5 deletions
@@ -3,7 +3,7 @@ pkgname=vim-openbrowser pkgver=2.0.0 _scriptid=25873 -pkgrel=1 +pkgrel=2 pkgdesc="Open URI with your favorite browser from vim" arch=('any') url="http://www.vim.org/scripts/script.php?script_id=3133" @@ -15,13 +15,35 @@ install=vimdoc.install source=("$pkgname-$pkgver.zip::http://www.vim.org/scripts/download_script.php?src_id=$_scriptid") sha256sums=('2abeca5d1f5b9a5fa018893197dc2e354b54cfc837b035ba6247f2c6dc37411c') +_install_directory() { + path=$1 + installpath=$2 + install -m755 -d $installpath/$path + + for file in $path/*; do + if [ -f $file ]; then + install -Dm644 -t $installpath/$path/ $file + fi + done +} + package() { cd ${srcdir} installpath="${pkgdir}/usr/share/vim/vimfiles" - install -d doc/ $installpath/doc/ - install -d plugin/ $installpath/plugin/ - install -d autoload/ $installpath/autoload/ - install -d lang/ $installpath/lang/ + _install_directory doc $installpath + _install_directory plugin $installpath + _install_directory lang $installpath + + _install_directory autoload/vital/__openbrowser__/OpenBrowser $installpath + _install_directory autoload/vital/__openbrowser__/ $installpath + _install_directory autoload/vital/_openbrowser/Web/URI $installpath + _install_directory autoload/vital/_openbrowser/Web $installpath + _install_directory autoload/vital/_openbrowser/Vim $installpath + _install_directory autoload/vital/_openbrowser/Data $installpath + _install_directory autoload/vital/_openbrowser/ $installpath + _install_directory autoload/vital/ $installpath + _install_directory autoload/ $installpath + } |