diff options
Diffstat (limited to 'vile')
| -rw-r--r-- | vile/APKBUILD | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/vile/APKBUILD b/vile/APKBUILD new file mode 100644 index 0000000..c024533 --- /dev/null +++ b/vile/APKBUILD @@ -0,0 +1,131 @@ +# Maintainer: John Vogel <jvogel4@stny.rr.com> +pkgname=vile +pkgver=9.8z +pkgrel=0 +pkgdesc="Vi Like Emacs" +url="https://invisible-island.net/vile" +arch="all" +license="GPL-2.0-only" +makedepends="flex ncurses-dev perl-dev freetype-dev libx11-dev libxaw-dev libxft-dev libxpm-dev perl" +# order matters! doc must come before the sub doc pkgs +subpackages=" + $pkgname-common::noarch + $pkgname-doc + $pkgname-curses-doc:curses_doc + $pkgname-x11-doc:x11_doc + $pkgname-curses + $pkgname-x11 + " +source="https://invisible-island.net/archives/vile/current/vile-$pkgver.tgz" +options="!check" + +prepare() { + default_prepare + mkdir "$builddir"/build_term + mkdir "$builddir"/build_x11 +} + +build() { + cd "$builddir"/build_term + "$builddir"/configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --with-libdir-path=/usr/libexec/vile \ + --with-startup-path=/usr/share/vile \ + --with-builtin-filters \ + --with-screen=ncursesw \ + --with-perl \ + --without-x \ + --with-ncurses \ + --enable-freetype \ + --enable-fontset \ + --enable-colored-menus \ + --enable-plugins \ + --disable-stripping \ + --with-locale + make + + cd "$builddir"/build_x11 + ../configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --with-libdir-path=/usr/libexec/xvile \ + --with-startup-path=/usr/share/xvile \ + --with-builtin-filters \ + --with-screen=X11 \ + --with-perl \ + --with-x \ + --with-xpm \ + --with-Xaw-scrollbars \ + --with-drag-extension \ + --enable-freetype \ + --enable-fontset \ + --enable-colored-menus \ + --enable-plugins \ + --disable-stripping \ + --with-locale + make +} + +package() { + make -C "$builddir"/build_term DESTDIR="$pkgdir" install + make -C "$builddir"/build_x11 DESTDIR="$pkgdir" install +} + +common() { + pkgdesc="Vi Like Emacs, common files for vile and xvile" + depends="!$pkgname" + amove usr/share/vile + amove usr/bin/vileget +} + +curses_doc() { + pkgdesc="Vi Like Emacs (vile) Documentation)" + install_if="$pkgname-curses=$pkgver-r$pkgrel docs" + pkgdir="$pkgdir-doc" amove usr/share/man/man1/vile* +} + +x11_doc() { + pkgdesc="Vi Like Emacs, with GUI (xvile) Documentation)" + install_if="$pkgname-x11=$pkgver-r$pkgrel docs" + pkgdir="$pkgdir-doc" amove usr/share/man/man1/xvile* +} + +curses() { + pkgdesc="Vi Like Emacs (vile)" + depends="perl $pkgname-common=$pkgver-r$pkgrel" + amove \ + usr/bin/vile \ + usr/bin/vile-libdir-path \ + usr/bin/vile-pager \ + usr/bin/vile-to-html \ + usr/libexec/vile +} + +x11() { + pkgdesc="Vi Like Emacs, with GUI (xvile)" + depends="perl $pkgname-common=$pkgver-r$pkgrel" + amove \ + usr/bin/lxvile \ + usr/bin/lxvile-fonts \ + usr/bin/uxvile \ + usr/bin/xshell.sh \ + usr/bin/xvile \ + usr/bin/xvile-libdir-path \ + usr/bin/xvile-pager \ + usr/bin/xvile-to-html \ + usr/libexec/xvile \ + usr/lib/X11 +} + +sha512sums=" +f5ff6f3d239f993d7b060e89650567e1c622cec1a024901e29d15cd9a588e8603097e12087d54e88beca91a3a7cd7328a541bac62889368da6636f143d6380ff vile-9.8z.tgz +" |
