# SliTaz package receipt. PACKAGE="snapper" VERSION="0.8.7" CATEGORY="base-system" SHORT_DESC="The ultimate snapshot tool for Linux." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://github.com/openSUSE/snapper/" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="ftp://ftp.suse.com/pub/projects/snapper/$TARBALL" DEPENDS="acl attr dbus gcc83-lib-base libboost-system libboost-thread libxml2 \ util-linux-blkid util-linux-mount util-linux-uuid zlib" BUILD_DEPENDS="btrfs-dev dbus-dev docbook-xsl e2fsprogs-dev gcc83 libboost-dev libboost-thread-dev libjson-c-dev lvm2 pkg-config util-linux-mount-dev util-linux-uuid" CONFIG_FILES="/etc/snapper" # What is the latest version available today? current_version() { wget -O - https://github.com/openSUSE/snapper/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { export LDFLAGS="$LDFLAGS -luuid" ./configure \ CC=gcc-83 \ CXX=g++-83 \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --disable-pam \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share mkdir -p $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/zypp $fs/usr/lib cp -a $install/usr/lib/snapper $fs/usr/lib cp -a $install/usr/share/dbus* $fs/usr/share cp -a $install/usr/share/locale $fs/usr/share cp -a $install/etc $fs }