wok rev 25801

created recipe for xfce4-calculator-plugin
author Hans-G?nter Theisgen
date Sat Nov 02 14:21:07 2024 +0100 (2 weeks ago)
parents 0600a43cc716
children 90471f5fca6d
files xfce4-calculator-plugin/description.txt xfce4-calculator-plugin/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xfce4-calculator-plugin/description.txt	Sat Nov 02 14:21:07 2024 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +The plugin supports common mathematical operators
     1.5 +(+, -, *, /, ^) with usual precedence rules,
     1.6 +and the following functions and constants:
     1.7 +pi                 3.141592654
     1.8 +abs(x)             Absolute value
     1.9 +sqrt(x)            Square root
    1.10 +cbrt(x)            Cubic root
    1.11 +sin(x)             Sine
    1.12 +cos(x)             Cosine
    1.13 +tan(x)             Tangent
    1.14 +asin(x), arcsin(x) Inverse of the sine function
    1.15 +acos(x), arccos(x) Inverse of the cosine function
    1.16 +atan(x), arctan(x) Inverse of the tangent function
    1.17 +exp(x)             Exponential function
    1.18 +log(x), ln(x)      Natural logaritm (base e)
    1.19 +log2(x)            Binary logarithm (base 2)
    1.20 +log10(x), lg(x)    Decadic or Common logarithm (base 10)
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xfce4-calculator-plugin/receipt	Sat Nov 02 14:21:07 2024 +0100
     2.3 @@ -0,0 +1,40 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="xfce4-calculator-plugin"
     2.7 +VERSION="0.6.0"
     2.8 +CATEGORY="x-window"
     2.9 +SHORT_DESC="Calculator plugin for the Xfce4 panel."
    2.10 +MAINTAINER="maintainer@slitaz.org"
    2.11 +LICENSE="GPL2"
    2.12 +WEB_SITE="https://docs.xfce.org/panel-plugins/xfce4-calculator-plugin/start"
    2.13 +
    2.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.15 +WGET_URL="https://archive.xfce.org/src/panel-plugins/$PACKAGE/${VERSION%.*}/$TARBALL"
    2.16 +
    2.17 +DEPENDS="gdk-pixbuf gtk+ libxfcegui4 xfce4-panel"
    2.18 +BUILD_DEPENDS="file gdk-pixbuf-dev gtk+-dev libxfcegui4-dev libxfce4ui-dev
    2.19 +	pkg-config xfce4-panel-dev"
    2.20 +
    2.21 +# What is the latest version available today?
    2.22 +current_version()
    2.23 +{
    2.24 +        wget -O - $WEB_SITE 2>/dev/null |
    2.25 +        sed '/released/!d;s| released.*||;s|.*-plugin ||'
    2.26 +}
    2.27 +
    2.28 +# Rules to configure and make the package.
    2.29 +compile_rules()
    2.30 +{
    2.31 +	./configure					\
    2.32 +		--prefix=/usr				\
    2.33 +		--enable-nls &&
    2.34 +	make &&
    2.35 +	make install
    2.36 +}
    2.37 +
    2.38 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.39 +genpkg_rules()
    2.40 +{
    2.41 +	cook_copy_folders	panel-plugins
    2.42 +	cook_copy_folders	icons
    2.43 +}