aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vim-rust
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-22 11:15:36 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-23 10:29:00 +0000
commit4675203575785895a800df91e15428d5d3a17c7f (patch)
tree5e9fa41ce1e7596200817cdcebd2f9880d2e3988 /testing/vim-rust
parent8621da1c369a1ba8d36defb500f1b1f6b87f1a6f (diff)
downloadaports-4675203575785895a800df91e15428d5d3a17c7f.tar.bz2
aports-4675203575785895a800df91e15428d5d3a17c7f.tar.xz
testing/vim-rust: avoid fork in global scope
Diffstat (limited to 'testing/vim-rust')
-rw-r--r--testing/vim-rust/APKBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/vim-rust/APKBUILD b/testing/vim-rust/APKBUILD
index 62872c1938..e74072d758 100644
--- a/testing/vim-rust/APKBUILD
+++ b/testing/vim-rust/APKBUILD
@@ -15,7 +15,6 @@ 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() {
@@ -23,6 +22,7 @@ build() {
}
package() {
+ _vimver="$(. ../../main/vim/APKBUILD; echo $pkgver | sed 's/\.//;s/\..*//')"
mkdir -p "$pkgdir"/usr/share/vim/vim$_vimver
cp -r $srcdir/$_builddir/*/ $pkgdir/usr/share/vim/vim$_vimver
}