wok annotate links/receipt @ rev 21709
ccid: update genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 08 10:39:23 2019 +0200 (2019-06-08) |
parents | 074f8db95176 |
children | 645cc58cf94c |
rev | line source |
---|---|
pankso@26 | 1 # SliTaz package receipt. |
pankso@26 | 2 |
pankso@26 | 3 PACKAGE="links" |
Hans-G?nter@21362 | 4 VERSION="2.19" |
pankso@203 | 5 CATEGORY="network" |
Hans-G?nter@21362 | 6 TAGS="web-browser" |
samuel_trassare@12047 | 7 SHORT_DESC="Light and fast web browser using Ncurses or Xlib." |
pankso@26 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
Hans-G?nter@21362 | 10 WEB_SITE="http://links.twibright.com/" |
Hans-G?nter@21362 | 11 |
pascal@15002 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15002 | 13 WGET_URL="http://links.twibright.com/download/$TARBALL" |
pascal@15002 | 14 |
pankso@16097 | 15 SUGGESTED="gpm" |
pankso@16097 | 16 DEPENDS="ncurses libssl libcrypto jpeg libpng tiff xorg-libX11 xorg-libXau \ |
Hans-G?nter@21362 | 17 xorg-libXdmcp libxcb zlib liblzma bzlib libgomp" |
pankso@16097 | 18 BUILD_DEPENDS="openssl-dev xorg-libX11-dev jpeg-dev libpng-dev tiff-dev \ |
Hans-G?nter@21362 | 19 zlib-dev xorg-libXdmcp-dev libxcb-dev xorg-libXau-dev xz-dev bzip2-dev \ |
Hans-G?nter@21362 | 20 gpm-dev" |
Hans-G?nter@21362 | 21 |
Hans-G?nter@21362 | 22 HOST_ARCH="i486 arm" |
pankso@16097 | 23 |
pankso@16097 | 24 # Handle cross compilation |
pankso@16097 | 25 case "$ARCH" in |
pankso@16097 | 26 arm*) |
pankso@16097 | 27 VERSION="2.7" |
pankso@16097 | 28 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16097 | 29 WGET_URL="http://links.twibright.com/download/$TARBALL" ;; |
pankso@16097 | 30 esac |
pankso@16097 | 31 |
pankso@16097 | 32 # Handle SliTaz arch |
pankso@16097 | 33 case "$SLITAZ_ARCH" in |
pankso@16097 | 34 arm*) VERSION="2.7" ;; |
pankso@16097 | 35 esac |
pankso@26 | 36 |
pankso@26 | 37 # Rules to configure and make the package. |
pankso@26 | 38 compile_rules() |
pankso@26 | 39 { |
Hans-G?nter@21362 | 40 ./configure \ |
Hans-G?nter@21362 | 41 --prefix=/usr \ |
Hans-G?nter@21362 | 42 --sysconfdir=/etc \ |
Hans-G?nter@21362 | 43 --enable-graphics \ |
Hans-G?nter@21362 | 44 --without-directfb \ |
pascal@2475 | 45 $CONFIGURE_ARGS && |
Hans-G?nter@21362 | 46 make -j 1 && |
pascal@15002 | 47 make DESTDIR=$DESTDIR install |
pankso@26 | 48 } |
pankso@26 | 49 |
pankso@26 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@26 | 51 genpkg_rules() |
pankso@26 | 52 { |
Hans-G?nter@21362 | 53 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21362 | 54 mkdir -p $fs/usr/share/webhome |
Hans-G?nter@21362 | 55 |
Hans-G?nter@21362 | 56 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21362 | 57 cp $src/graphics/links.xpm $fs/usr/share/pixmaps |
Hans-G?nter@21362 | 58 cp $stuff/links.html $fs/usr/share/webhome |
pankso@26 | 59 } |