w3m: fix all /usr/local reference, ships more docs
This commit is contained in:
parent
04de89eb8b
commit
0f85fb72a0
1 changed files with 26 additions and 6 deletions
|
@ -1,13 +1,15 @@
|
||||||
# Template file for 'w3m'
|
# Template file for 'w3m'
|
||||||
pkgname=w3m
|
pkgname=w3m
|
||||||
version=0.5.3+git20200502
|
version=0.5.3+git20200502
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="${pkgname}-${version/+/-}"
|
wrksrc="${pkgname}-${version/+/-}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--libexecdir=/usr/lib --enable-image=x11,fb
|
configure_args="--libexecdir=/usr/lib --enable-image=x11,fb
|
||||||
|
--with-nkf=/usr/bin/nkf
|
||||||
--with-imagelib=imlib2 --with-termlib=ncurses --disable-w3mmailer"
|
--with-imagelib=imlib2 --with-termlib=ncurses --disable-w3mmailer"
|
||||||
hostmakedepends="pkg-config gc-devel perl gettext"
|
hostmakedepends="pkg-config gc-devel perl gettext nkf"
|
||||||
makedepends="zlib-devel ncurses-devel gc-devel libressl-devel imlib2-devel libX11-devel"
|
makedepends="zlib-devel ncurses-devel gc-devel libressl-devel imlib2-devel
|
||||||
|
libX11-devel"
|
||||||
short_desc="Text-based Web browser and pager (with Debian patches)"
|
short_desc="Text-based Web browser and pager (with Debian patches)"
|
||||||
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -18,6 +20,14 @@ checksum=bfc3d076be414b76352fa487d67b0b2aa9e400aafe684e2eb66d668a1597141c
|
||||||
|
|
||||||
LDFLAGS="-lX11"
|
LDFLAGS="-lX11"
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
rm -f Bonus/oldconfigure.sh
|
||||||
|
vsed -i -e 's,/usr/local/bin,/usr/bin,g' \
|
||||||
|
Bonus/makeref Bonus/scanhist.rb Bonus/html2latex \
|
||||||
|
scripts/w3mman/hlink.cgi
|
||||||
|
chmod +x Bonus/scanhist.rb Bonus/utf8.cgi
|
||||||
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# build host mktable
|
# build host mktable
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
@ -30,14 +40,24 @@ pre_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense ${wrksrc}/doc/README
|
local _file
|
||||||
|
vlicense doc/README
|
||||||
|
for _file in doc/HISTORY doc/README* doc/*.html
|
||||||
|
do
|
||||||
|
vdoc "$_file"
|
||||||
|
done
|
||||||
|
for _file in doc/keymap* doc/menu*
|
||||||
|
do
|
||||||
|
vsconf "$_file"
|
||||||
|
done
|
||||||
|
vcopy Bonus usr/share/examples/w3m/bonus
|
||||||
}
|
}
|
||||||
|
|
||||||
w3m-img_package() {
|
w3m-img_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - image display support"
|
short_desc+=" - image display support"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove /usr/lib/w3m/w3mimgdisplay
|
vmove usr/lib/w3m/w3mimgdisplay
|
||||||
vmove /usr/lib/w3m/xface2xpm
|
vmove usr/share/doc/w3m/README.img
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue