# SliTaz package receipt. PACKAGE="xorg-imake" VERSION="1.0.8" CATEGORY="x-window" SHORT_DESC="X imake utility." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="https://www.x.org/wiki/" SOURCE="imake" TARBALL="$SOURCE-$VERSION.tar.bz2" WGET_URL="$XORG_MIRROR/util/$TARBALL" DEPENDS="xorg-cf-files" BUILD_DEPENDS="perl pkg-config xorg-gccmakedep xorg-makedepend 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 \ --mandir=/usr/share/man \ --with-create-lib-cmd="ar cq" \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install chmod +x $DESTDIR/usr/bin/* } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }