# SliTaz package receipt. PACKAGE="arj" VERSION="3.10.22" CATEGORY="system-tools" SHORT_DESC="ARJ archiver." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://arj.sourceforge.net/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="compression archive" BUILD_DEPENDS="autoconf" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/arj/files/arj/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*arj-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src/gnu autoheader autoconf ./configure --prefix=/usr --infodir=/usr/share/info \ --mandir=/usr/share/man $CONFIGURE_ARGS cd .. busybox patch -p0 < $stuff/fardata.u # Ugly hack... sed -i 's/Patch not found.*/&return(POSTPROC_ERL_SUCCESS);/' postproc.c make -j 1 && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib $fs/usr }