wok view tabbed/receipt @ rev 25696

created recipe for dool
author Hans-G?nter Theisgen
date Sat May 11 17:17:55 2024 +0100 (6 months ago)
parents 28f3ef225377
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tabbed"
4 VERSION="0.6"
5 CATEGORY="x-window"
6 SHORT_DESC="Simple generic tabbed fronted to xembed aware applications."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://tools.suckless.org/tabbed/"
11 WGET_URL="http://dl.suckless.org/tools/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="xorg-libX11 xorg-xwininfo"
15 BUILD_DEPENDS="xorg-libX11-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 case "$ARCH" in
28 arm*)
29 sysroot="/cross/$ARCH/sysroot"
30 sed -i \
31 -e s"#LIBS =.*#LIBS = -L$sysroot/usr/lib -lc -lX11#" \
32 -e s"#INCS =.*#INCS = -I. -I$sysroot/usr/include#" \
33 config.mk || return 1
34 esac
35 make CC=${HOST_SYSTEM}-gcc
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin $fs/usr/share/${PACKAGE}
42 cp -a ${src}/${PACKAGE} $fs/usr/bin
43 }