# HG changeset patch
# User Christophe Lincoln <pankso@slitaz.org>
# Date 1395872776 -3600
# Node ID 59eaad62a24af9dc81e502cda5a513f34ab19487
# Parent  62fd9cdd34230462d5a2e1035527583e1d17f61f
Add links-dfb (Links with DirectFB support)

diff -r 62fd9cdd3423 -r 59eaad62a24a links-dfb/description.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/links-dfb/description.txt	Wed Mar 26 23:26:16 2014 +0100
@@ -0,0 +1,2 @@
+Links is a lightweight, fast web browser that supports both graphics and text
+mode. This version can run in the Linux framebuffer via DirectFB.
diff -r 62fd9cdd3423 -r 59eaad62a24a links-dfb/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/links-dfb/receipt	Wed Mar 26 23:26:16 2014 +0100
@@ -0,0 +1,41 @@
+# SliTaz package receipt.
+
+PACKAGE="links-dfb"
+VERSION="2.8"
+CATEGORY="network"
+SHORT_DESC="Light and fast web browser using Ncurses, X or DirectFB."
+MAINTAINER="pankso@slitaz.org"
+LICENSE="GPL2"
+SOURCE="links"
+TARBALL="$SOURCE-$VERSION.tar.gz"
+WEB_SITE="http://links.twibright.com/"
+WGET_URL="http://links.twibright.com/download/$TARBALL"
+HOST_ARCH="i486 arm"
+PROVIDE="links"
+
+DEPENDS="ncurses openssl jpeg libpng tiff zlib directfb"
+BUILD_DEPENDS="openssl-dev ncurses-dev jpeg-dev libpng-dev tiff-dev \
+zlib-dev directfb-dev"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+	./configure \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--with-directfb \
+		--without-bzip2 \
+		--enable-graphics \
+		$CONFIGURE_ARGS &&
+	make &&
+	make DESTDIR=$DESTDIR install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/share/pixmaps
+	cp -a $install/usr/bin $fs/usr
+	cp $src/graphics/links.xpm $fs/usr/share/pixmaps
+}
diff -r 62fd9cdd3423 -r 59eaad62a24a links-dfb/stuff/links.desktop
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/links-dfb/stuff/links.desktop	Wed Mar 26 23:26:16 2014 +0100
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Links Web browser
+Name[fr]=Navigateur Web Links 
+Exec=links -g file:///usr/share/webhome/index.html
+Icon=links
+Type=Application
+Categories=Network;