1

[alpine-aports] [PATCH] testing/vim-rust: new aport

Luka Vandervelden
Details
Message ID
<1457720003-12200-1-git-send-email-lukc@upyum.com>
Sender timestamp
1457720003
DKIM signature
missing
Download raw message
Patch: +32 -0
https://github.com/rust-lang/rust.vim
Vim configuration for Rust.
---
 testing/vim-rust/APKBUILD | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 testing/vim-rust/APKBUILD

diff --git a/testing/vim-rust/APKBUILD b/testing/vim-rust/APKBUILD
new file mode 100644
index 0000000..62872c1
--- /dev/null
+++ b/testing/vim-rust/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Luka Vandervelden <lukc@upyum.com>
+# Maintainer: Luka Vandervelden <lukc@upyum.com>
+pkgname=vim-rust
+pkgver=305
+_commit=e651851c7455286f0ba42c46777e9677c68796ac
+pkgrel=0
+pkgdesc="Vim configuration for Rust."
+url="https://github.com/rust-lang/rust.vim"
+arch="noarch"
+license="MIT"
+depends="vim"
+depends_dev=""
+makedepends=""
+install=""
+subpackages=""
+source="https://github.com/rust-lang/rust.vim/archive/$_commit.zip"
+
+_vimver="$(. ../../main/vim/APKBUILD; echo $pkgver | sed 's/\.//;s/\..*//')"
+
+_builddir="rust.vim-$_commit"
+build() {
+	:
+}
+
+package() {
+	mkdir -p "$pkgdir"/usr/share/vim/vim$_vimver
+	cp -r $srcdir/$_builddir/*/ $pkgdir/usr/share/vim/vim$_vimver
+}
+
+md5sums="def924ab2dacc48bbbfe03136e53a29f  e651851c7455286f0ba42c46777e9677c68796ac.zip"
+sha256sums="0b5462d03c06560dc19250fcc19f98a255a00c037b765de2d72f41b0afeb31a4  e651851c7455286f0ba42c46777e9677c68796ac.zip"
+sha512sums="892f5ebbfed1cf9eaa8fe8bbaf9934ab98aacd8dd8874fe3faf82fcec1fec9973a25a7ff785bcf144e0dee8a0bdeefeaa1785f16caf84db9312b161c9fcef348  e651851c7455286f0ba42c46777e9677c68796ac.zip"
-- 
2.7.2



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Sören Tempel
Details
Message ID
<20160313201125.GA14340@francium.fritz.box>
In-Reply-To
<1457720003-12200-1-git-send-email-lukc@upyum.com> (view parent)
Sender timestamp
1457899885
DKIM signature
missing
Download raw message
Does it really make sense to package a vim plugin for a programming
language that is currently not officially supported in our repositories?
Besides upstream doesn't seem to tag releases which isn't cool either.
Otherwise it looks good although a minor problem might be the following:

On 11.03.16, Luka Vandervelden wrote:
> +_vimver="$(. ../../main/vim/APKBUILD; echo $pkgver | sed 's/\.//;s/\..*//')"

That looks kind of ugly and would require a rebuild of this aport on a
major vim version bump.

Sören.


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---