blob: c024533d83ba59f383b02b2801ec0f856b6a7faa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
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
"
|