# SliTaz package receipt. PACKAGE="xorg-rgb" VERSION="1.0.6" CATEGORY="x-window" SHORT_DESC="X11 RGB colors definitions." MAINTAINER="pankso@slitaz.org" LICENSE="MIT" WEB_SITE="https://www.x.org/wiki/" SOURCE="rgb" TARBALL="$SOURCE-$VERSION.tar.bz2" WGET_URL="$XORG_MIRROR/app/$TARBALL" BUILD_DEPENDS="pkg-config xorg-xproto" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ $CONFIGURE_ARGS 2>1 | sed '/.*\/root\/missing.*/d' && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/usr/share/X11 $fs/usr/share }