wok annotate xfprint/receipt @ rev 24669

updated inxi (3.0.37 -> 3.3.13)
author Hans-G?nter Theisgen
date Fri Mar 11 16:49:52 2022 +0100 (2022-03-11)
parents 6e8b1bcb30e2
children bd7510903310
rev   line source
erjo@2075 1 # SliTaz package receipt.
erjo@2075 2
erjo@2075 3 PACKAGE="xfprint"
erjo@4134 4 VERSION="4.6.1"
erjo@2075 5 CATEGORY="x-window"
erjo@2075 6 SHORT_DESC="Xfce Printer manager"
erjo@2075 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
erjo@2075 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20671 10 WEB_SITE="https://www.xfce.org"
pascal@12643 11 WGET_URL="http://archive.xfce.org/xfce/$VERSION/src/$TARBALL"
erjo@2075 12
erjo@9979 13 DEPENDS="libxfcegui4 libxfce4util cups dbus-glib startup-notification \
pankso@12481 14 libcomerr3 util-linux-uuid"
erjo@9979 15 BUILD_DEPENDS="libxfcegui4-dev libxfce4util-dev cups-dev intltool xfconf-dev \
pascal@19744 16 dbus-glib-dev startup-notification-dev util-linux-uuid-dev gtk+-dev \
pascal@19744 17 xcb-util-dev"
erjo@9979 18
pascal@24415 19 # What is the latest version available today?
pascal@24415 20 current_version()
pascal@24415 21 {
pascal@24415 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24415 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24415 24 }
pascal@24415 25
erjo@2075 26 # Rules to configure and make the package.
erjo@2075 27 compile_rules()
erjo@2075 28 {
erjo@2075 29 cd $src
pascal@15345 30 patch -p1 < $stuff/xfprint-4.6.1-cups-1.6.patch
erjo@9979 31 ./configure --prefix=/usr $CONFIGURE_ARGS && \
erjo@9979 32 make && make DESTDIR=$DESTDIR install
erjo@2075 33 }
erjo@2075 34
erjo@2075 35 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@2075 36 genpkg_rules()
erjo@2075 37 {
erjo@2075 38 mkdir -p $fs/usr
erjo@2075 39
pascal@15000 40 cp -a $install/usr/bin $fs/usr
pascal@15000 41 cp -a $install/usr/lib $fs/usr
erjo@2075 42
erjo@2075 43 # Remove unecessary files
erjo@2075 44 find $fs/ -name "*.*a" -exec rm -f {} \;
erjo@2075 45 rm -rf $fs/usr/lib/pkgconfig
erjo@2075 46 # Remove SVG icons
erjo@2075 47 rm -rf $fs/usr/share/icons/hicolor/scalable
erjo@2075 48
erjo@2075 49
erjo@2075 50 }
erjo@2075 51