pkgname: vim pkgver: '9.2.1001' pkgrel: 1 pkgdesc: The Vim package contains a powerful text editor. url: 'https://www.vim.org/' arch: x86_64 license: - 'custom:VIM' depends: [] makedepends: - gpm - ncurses source: - 'https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz' sha256sums: - SKIP hooks: post-install: "name=vim\nversion=9.2.0849\nrelease=1\nINFO=\"\\033[1;36m\"\nNORMAL=\"\\033[0;39m\"\nif [ ! -f etc/vimrc\ \ ]; then\n\tcat > etc/vimrc << \"EOF\"\n\" Begin /etc/vimrc\nif (&term == \"xterm\") || (&term == \"putty\")\n set\ \ background=dark\nendif\nset ruler\nset nocompatible\nset backspace=2\nset mouse=r\nsyntax on\n\n\" End /etc/vimrc\n\ EOF\n\tprintf \"${INFO} /etc/vimrc created. ${NORMAL}\\n\"\nelse\n\tprintf \"${INFO} /etc/vimrc already exist. ${NORMAL}\\\ n\"\nfi\n" build: | cd ${pkgname}-${pkgver} echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h ./configure --prefix=/usr --enable-multibyte \ --enable-gui=no --with-x=no make mkdir -p ${PKGDIR}/usr/share/locale make DESTDIR=${PKGDIR} DEST_HELP=${PKGDIR}/usr/share/doc/${pkgname} \ LANGSUBLOC=/usr/share/locale install ln -sv ../vim/vim92.0849/doc ${PKGDIR}/usr/share/doc/${pkgname} rm -rf ${PKGDIR}/usr/share/applications rm -rf ${PKGDIR}/usr/share/icons install -Dm644 LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE package: | true