w3m: extract image support to w3m-img.

This commit is contained in:
Christian Neukirchen 2015-10-10 22:56:07 +02:00
parent 51812409da
commit 9fcec3b3f1
2 changed files with 15 additions and 2 deletions

1
srcpkgs/w3m-img Symbolic link
View File

@ -0,0 +1 @@
w3m

View File

@ -1,7 +1,7 @@
# Template file for 'w3m'
pkgname=w3m
version=0.5.3
revision=9
revision=10
build_style=gnu-configure
configure_args="
--libexecdir=/usr/lib --enable-image=x11,fb --with-imagelib=imlib2
@ -17,7 +17,7 @@ checksum=e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3
disable_parallel_build=yes
LDFLAGS="-lX11"
LDFLAGS="-Wl,--as-needed -lX11"
pre_build() {
# build host mktable
@ -29,3 +29,15 @@ pre_build() {
sed -e 's,./mktable$(EXT),./host-mktable$(EXT),g' -i Makefile
fi
}
post_install() {
rm -f ${DESTDIR}/usr/lib/w3m/xface2xpm
}
w3m-img_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" -- image display support"
pkg_install() {
vmove /usr/lib/w3m/w3mimgdisplay
}
}