X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by lists.alpinelinux.org (Postfix) with ESMTP id 05BE9F84D2B for ; Thu, 7 Mar 2019 12:56:34 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id o17so17321883wrw.3 for ; Thu, 07 Mar 2019 04:56:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zeSvb5m7K42szkWWYzEWiOpCiVdp7ELnljJIkbmvuXM=; b=j8wz5vmiWSy59JoHxxyuz8RJxHeLCChMhPHPcauq2fbbAth1Z/sdXuF8Iu1YLJWV89 ulRgqgRAIRmWQyZw2GOUpDJJqZapTN7Pr7Myezs0wiplXh8RhRZuG9siQdpmiMUlCFEo GbNXjncWf7rPs/hNLwqQxHssWKf36g/tYtqScs3Vj76eAnDqh27Y6V3b1aprYpjVJ+Rl rz/YiC8R4znz+wPK7Ysb8qrD4PpYcPxBAKoeE+CLjE+Y1iRLUrFLTUOr+F1lzi/lpDU5 VzklVtIG3XJUCjhDOEnCb1+3HpcN4LnXcxjrYaLix8ZXObmVigi1Trtf68y/15RivGdp cgpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zeSvb5m7K42szkWWYzEWiOpCiVdp7ELnljJIkbmvuXM=; b=c/+8rsaoa27YNOisgCM+8fyE7JCsuN63JR37931hG0jU3LhzoM9DEYq54cACsxU1rM rdCIxNQSsma65XYPsG9cf7NLCLIi88OFz00UhFTrQHBtiJYnN7gYwQz2C4VLMJ+SmEt/ Dfa6vkLnROge2he02hMZwEzlX7dxeoC6FwwLZU+hknHJuP6QSPyycqpuk2cM5WKhaFRF Z6Ke9qWVoDyDJJlYo4NwMdX5MJPafEX1qBAZetuQG5ggiZlhC/yJ4s0rHjkJ0DUUhXTA 56TTXx4UHzQUzUSGmez9clBbQvp9LpJuGnf+lMcNjGXtnRGmQNWXJwWymKc+1+fy3Swy ywKA== X-Gm-Message-State: APjAAAX/gte2JQlnRZyAk+jp+/D2SHSR+qsYypK6n+sSygj36cg1mwmH EqkkhQg35TZSSX/fGpQxqp+rKnFccDw= X-Google-Smtp-Source: APXvYqwguFg3HMoM2bDZaBgO6AdRpdR9kC4/pmC47Q4M2GL5t3eqLrUh7GbBxGjLRSVFo+zx5STyqw== X-Received: by 2002:adf:ecd2:: with SMTP id s18mr6712147wro.293.1551963393054; Thu, 07 Mar 2019 04:56:33 -0800 (PST) Received: from alpinesway2vm.my.domain (pubht46.bham.ac.uk. [147.188.137.46]) by smtp.gmail.com with ESMTPSA id h17sm2111118wrq.93.2019.03.07.04.56.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 04:56:32 -0800 (PST) From: Matt Hill To: alpine-aports@lists.alpinelinux.org Cc: Matt Hill Subject: [alpine-aports] [PATCH v2] community/fzf: Add vim/neovim subpackage Date: Thu, 7 Mar 2019 12:55:47 +0000 Message-Id: <20190307125547.12929-1-theothermatt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190305160038.8234-1-theothermatt@gmail.com> References: <20190305160038.8234-1-theothermatt@gmail.com> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit https://github.com/junegunn/fzf/blob/master/README-VIM.md Basic integration for Vim/Neovim --- Separate packages for vim and neovim seems better to me - if you're using neovim, you're not likely to be using vim too. Well, I don't anyway. Also added an `install_if` for each. community/fzf/APKBUILD | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/community/fzf/APKBUILD b/community/fzf/APKBUILD index dd7fc77f25..d0098adf9e 100644 --- a/community/fzf/APKBUILD +++ b/community/fzf/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Kevin Daudt pkgname=fzf pkgver=0.17.5 -pkgrel=2 +pkgrel=3 pkgdesc="A command-line fuzzy finder" url="https://github.com/junegunn/fzf" arch="all !s390x !aarch64 !armhf !armv7" @@ -12,6 +12,8 @@ subpackages=" $pkgname-tmux::noarch $pkgname-bash-completion:bashcomp:noarch $pkgname-zsh-completion:zshcomp:noarch + $pkgname-vim:vim:noarch + $pkgname-neovim:nvim:noarch " source="$pkgname-$pkgver.tar.gz::https://github.com/junegunn/fzf/archive/$pkgver.tar.gz no-glide-install.patch" @@ -71,5 +73,21 @@ zshcomp() { install -m0644 shell/key-bindings.zsh "$subpkgdir"/usr/share/fzf/ } +vim() { + pkgdesc="fzf vim plugin" + install_if="$pkgname=$pkgver-r$pkgrel vim" + cd "$builddir" + mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/plugin/ + install -Dm0644 plugin/fzf.vim "$subpkgdir"/usr/share/vim/vimfiles/plugin/ +} + +nvim() { + pkgdesc="fzf vim plugin for neovim" + install_if="$pkgname=$pkgver-r$pkgrel neovim" + cd "$builddir" + mkdir -p "$subpkgdir"/usr/share/nvim/runtime/plugin/ + install -Dm0644 plugin/fzf.vim "$subpkgdir"/usr/share/nvim/runtime/plugin/ +} + sha512sums="adb5290317362c32d053294a2dd9a2aa11711521635c1cb1fc11001dea1b06e27856a7c54e7316d211abee3304cc56b8a9ee60773bb99cb4132b533f5464a430 fzf-0.17.5.tar.gz daa16985079e3b55ccf5e74dde356e1e13e43865c9809e432b5d272b053f541f1eacd402f3b04957ee855fb8c0ca1820b507d08e408f55dc80004990a949874c no-glide-install.patch" -- 2.20.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---