summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPeter Mattern2015-08-14 14:57:02 +0200
committerPeter Mattern2015-08-14 14:57:02 +0200
commit78ec10729d2f3d173accdacbef30f891a18143bf (patch)
tree218c2084ee47304cb0428715a1bb0852c38984ce /PKGBUILD
downloadaur-78ec10729d2f3d173accdacbef30f891a18143bf.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD85
1 files changed, 85 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1430d0b805e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,85 @@
+# Maintainer: Peter Mattern <pmattern at arcor dot de>
+
+# Interpreters are handled by value "dynamic" of configure options
+# '--enable-<language>interp' and can thus be chosen at runtime by installing appropriate
+# packages. Counterpart of Vim packages '-python3' no longer needed, IMHO.
+
+_pkgname=vim
+pkgname="gvim-git"
+pkgver=7.4.824
+pkgrel=1
+pkgdesc="Vim the editor. CLI version and GTK2 GUI providing majority of features."
+arch=("i686" "x86_64")
+url="http://www.vim.org"
+license=("custom:vim")
+depends=("vim-runtime-git" "gtk2" "hicolor-icon-theme" "gtk-update-icon-cache" "desktop-file-utils")
+optdepends=("lua: Lua interpreter" "perl: Perl interpreter" "python: Python 3 interpreter"
+ "python2: Python 2 interpreter" "ruby: Ruby interpreter")
+makedepends=("git" "lua" "python" "python2" "ruby")
+provides=("gvim" "xxd")
+conflicts=("vim-minimal-git" "vim-git"
+ "vim-minimal" "vim" "vim-python3" "gvim" "gvim-python3")
+source=("git+https://github.com/vim/vim.git"
+ "gvim.desktop")
+sha256sums=("SKIP"
+ "97e94c3ca5825d6ab50096eb8449adf1b05c88ad13e60e6a99be8daacc797eac")
+install=gvim-git.install
+
+pkgver() {
+ cd $_pkgname
+ git describe --tags | sed 's/^v//;s/-/./g'
+}
+
+prepare() {
+
+ # set global configuration files to /etc/[g]vimrc
+ sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' $_pkgname/src/feature.h
+
+}
+
+build() {
+
+ cd $_pkgname
+ ./configure \
+ --enable-fail-if-missing \
+ --with-compiledby='Arch Linux AUR' \
+ --prefix=/usr \
+ --enable-gui=gtk2 \
+ --with-features=huge \
+ --enable-cscope \
+ --enable-multibyte \
+ --enable-perlinterp=dynamic \
+ --enable-pythoninterp=dynamic \
+ --enable-python3interp=dynamic \
+ --enable-rubyinterp=dynamic \
+ --enable-luainterp=dynamic
+ make
+
+}
+
+package() {
+
+ # actual installation
+ cd $_pkgname
+ make DESTDIR=$pkgdir install
+
+ # desktop entry file and corresponding icon
+ install -D -m644 ../gvim.desktop $pkgdir/usr/share/applications/gvim.desktop
+ install -D -m644 runtime/vim48x48.png $pkgdir/usr/share/icons/hicolor/48x48/apps/gvim.png
+
+ # remove ex/view and man pages (normally provided by package 'vi' on Arch Linux)
+ cd $pkgdir/usr/bin ; rm ex view
+ find $pkgdir/usr/share/man -type d -name 'man1' 2>/dev/null | \
+ while read _mandir; do
+ cd ${_mandir}
+ rm -f ex.1 view.1
+ done
+
+ # remove components provided by vim-runtime-git
+ cd $pkgdir
+ rm -R usr/share/vim
+
+ # add license
+ install -D -m644 $srcdir/$_pkgname/runtime/doc/uganda.txt \
+ $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}