desktop/w3m/PKGBUILD

42 lines
1.1 KiB
Bash
Raw Normal View History

2010-08-08 05:20:34 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
2014-02-03 17:38:55 +08:00
# Maintainer: Samir Benmendil <ram-z[at]chakra-project[dot]org>
2010-08-08 05:20:34 +08:00
pkgname=w3m
2017-01-16 07:12:54 +08:00
_gitcommit=1ac245bdcd803f69c7793ecccc090a80b1137d35
pkgver=0.5.3.git20170102
pkgrel=1
pkgdesc='Text-based Web browser, as well as pager'
url='http://w3m.sourceforge.net/'
2010-08-08 05:20:34 +08:00
license=('custom')
2017-01-16 07:12:54 +08:00
arch=('i686' 'x86_64')
makedepends=('git' 'imlib2')
optdepends=('imlib2: for graphics support')
depends=('openssl' 'gc' 'ncurses' 'gpm')
source=(${pkgname}::"git+https://anonscm.debian.org/git/collab-maint/w3m.git#commit=${_gitcommit}")
sha1sums=('SKIP')
2010-08-08 05:20:34 +08:00
build() {
2017-01-16 07:12:54 +08:00
cd "${srcdir}/${pkgname}"
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--enable-image=x11,fb \
--with-imagelib=imlib2 \
--with-termlib=ncurses \
--disable-w3mmailer \
make
2012-02-09 15:58:47 +08:00
}
package() {
2017-01-16 07:12:54 +08:00
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
2012-02-09 15:58:47 +08:00
2017-01-16 07:12:54 +08:00
install -d "${pkgdir}"/usr/share/{doc,licenses}/"${pkgname}"
find doc/* | grep -v CVS | xargs -i install -m644 "{}" "${pkgdir}/usr/share/doc/${pkgname}"
ln -s ../../doc/"${pkgname}"/README "${pkgdir}/usr/share/licenses/${pkgname}"
2010-08-08 05:20:34 +08:00
}
2017-01-16 07:12:54 +08:00