39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
# Description: A text WWW browser, similar to Lynx
|
|
# URL: http://links.twibright.com/
|
|
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
|
|
#
|
|
# Depends on: bzip2 xz openssl gpm
|
|
# Nice to have: xorg libtiff libpng
|
|
|
|
name=links
|
|
version=2.8
|
|
release=2
|
|
source=(http://links.twibright.com/download/${name}-${version}.tar.bz2 links.desktop)
|
|
|
|
build() {
|
|
cd ${name}-${version}
|
|
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure
|
|
|
|
(cd intl; ./gen-intl; ./synclang)
|
|
./configure --prefix=/usr --mandir=/usr/share/man --enable-javascript \
|
|
--enable-graphics --with-x --with-fb
|
|
make
|
|
mv links xlinks
|
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man --enable-javascript \
|
|
--disable-graphics --without-x --without-fb
|
|
make
|
|
|
|
make DESTDIR="${PKG}" install
|
|
|
|
install -m755 xlinks "${PKG}/usr/bin/xlinks"
|
|
ln -s links.1.gz "${PKG}/usr/share/man/man1/xlinks.1.gz"
|
|
|
|
install -D -m644 "${SRC}/links.desktop" "${PKG}/usr/share/applications/links.desktop"
|
|
install -d "${PKG}/usr/share/pixmaps"
|
|
install -m644 links_16x16_1.xpm links_16x16_2.xpm links_32x32.xpm "${PKG}/usr/share/pixmaps/"
|
|
|
|
install -d "${PKG}/usr/share/doc/links/calibration"
|
|
install -m644 doc/links_cal/* "${PKG}/usr/share/doc/links/calibration/"
|
|
}
|