summaryrefslogtreecommitdiffstats
path: root/vim/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-01-22 11:53:58 +0100
committerpiernov <piernov@piernov.org>2012-01-22 11:53:58 +0100
commit656378eb13dd8c1af44a368e7dfee3333eb055a2 (patch)
tree9707d7a6d1af19d5c1d8431821232ae81ce42d85 /vim/Pkgfile
parent9626427c1a1d9c292fc519810c13b9a8073e777f (diff)
parent8d576551b5c270c65fe06443b7295d73cc662064 (diff)
downloadnutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.gz
nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.bz2
nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.tar.xz
nutyx-pakxe-656378eb13dd8c1af44a368e7dfee3333eb055a2.zip
Merged with http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe → Repository splitted → nutyx-pakxe
Diffstat (limited to 'vim/Pkgfile')
-rwxr-xr-xvim/Pkgfile37
1 files changed, 37 insertions, 0 deletions
diff --git a/vim/Pkgfile b/vim/Pkgfile
new file mode 100755
index 000000000..f86b618a8
--- /dev/null
+++ b/vim/Pkgfile
@@ -0,0 +1,37 @@
+# Description: Le plus populaire des éditeurs de texte colorimétrique
+# URL: http://www.vim.org/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+
+name=vim
+version=7.3
+release=2
+source=(ftp://ftp.vim.org/pub/vim/unix/vim-$version.tar.bz2\
+ vimrc)
+build () {
+cd $name${version/\./}
+echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+./configure --prefix=/usr \
+ --enable-gui=no --with-x=no \
+ --enable-multibyte --disable-gpm
+
+make
+make DESTDIR=$PKG install
+mkdir -v $PKG/{etc,usr/share/doc}
+cat > $PKG/etc/vimrc << "EOF"
+" Begin /etc/vimrc
+
+set nocompatible
+set backspace=2
+set background=dark
+syntax on
+set ruler
+" End /etc/vimrc
+EOF
+
+ln -sv vim $PKG/usr/bin/vi
+for L in $PKG/usr/share/man/{,*/}man1/vim.1; do
+ ln -sv vim.1 $(dirname $L)/vi.1
+done
+ln -sv ../vim/vim72/doc $PKG/usr/share/doc/vim-$version
+}