# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=snapper pkgver=0.5.4 pkgrel=0 pkgdesc="Manage filesystem snapshots and allow undo of system modifications" url="https://snapper.io" arch="all !armhf" # armhf: fails to build license="GPL-2.0" # 3 tests are failing options="!check" makedepends="automake autoconf libtool bash btrfs-progs-dev e2fsprogs-dev dbus-dev acl-dev lvm2-dev libxml2-dev boost-dev bsd-compat-headers boost-thread gettext-dev libxslt docbook-xsl" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="$pkgname-$pkgver.tar.gz::https://github.com/openSUSE/snapper/archive/v$pkgver.tar.gz musl-posix.patch musl-mode_t.patch musl-mktime.patch musl-stdout_stderr.patch musl-_nl_msg_cat_cntr.patch musl-__isleap.patch musl-types.patch musl-boost.patch remove-systemd.patch fix-poll_h.patch" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare autoreconf -fi # rename cron scripts sed -i -e 's@suse.de-@@g' scripts/Makefile.am # fix config location in cron scripts sed -i -e 's@/etc/sysconfig/@/etc/conf.d/@g' scripts/snapper-daily sed -i -e 's@/etc/sysconfig/@/etc/conf.d/@g' scripts/snapper-hourly } build() { cd "$builddir" export LDFLAGS="$LDFLAGS -lintl" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sbindir=/usr/sbin \ --disable-silent-rules \ --with-conf=/etc/conf.d \ --disable-pam \ --disable-zypp make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="fab50b09c46e0a45c81efa26b05b5898b0ec8e7e89da9c7db1014b204e9f50f829c6573d606b44e647a868961529f0cee7ac994e04e17d6ce58c2300d23d5288 snapper-0.5.4.tar.gz f6da045474d6d4836d62c57e5db445bc790c2c1d1e9336edabcb62164eed1790db7870b343c66835e7e5b12b740bf0a18dc0da0259ad22616bd4eafc85f81a80 musl-posix.patch ddcd279f77007fe905df27b904dc84c8c2eebf0cf42c9f992fdc992e2912ddaab59712c13a798243c4f81727c04ef8e0993773686ab0c682e41726a2bcad962b musl-mode_t.patch 57479b51c821f880c2fc6d50ac59a3f9c2dc49a1da509e643a4e3f93491fb50220b97cacf0c09943b5b3b9cce531a3d5d11b8d0d146aa06ef21c1acb139cb193 musl-mktime.patch ed393b476a679ebc8f130e34826958a30aa98dc7ac77c0c324a486cc3ed8539584552a305e2ddcb810626c6ab3478e634c77762395e2560abc935cd18e882beb musl-stdout_stderr.patch d5305df362df7db3b882cb491d32d11f479d1d56b21a39bc5e0cbdf7cdf70341eb566e7374bb9acc6d4fa1db027d4f009857fed21ef48ed311efaaa1be7b6329 musl-_nl_msg_cat_cntr.patch 8278c469def65e58cb2aee039882d1d237b4b404386472f9540da11a1d3cddd60dda08a99074f9f418b328ce2c4ac73d3190a74a6fe3e00eab9adb4fed87a4ec musl-__isleap.patch 8bc2b42bbee927ce88f77e71a9594da3b6e54e92008e5603c6d8db35b3ec37add456bcc52d7d6a913c69a395c73bd3f6a3934ea549d4cc0097cb65613f61ed48 musl-types.patch 03fba131b3beca83cbe9432c4d297757dfa0d3f6172690c361860c19feae48b96fba625238118e5c3eec55385ab4b85faf6143507f3d12171a6870dc65844ed3 musl-boost.patch 719c0dbc8c9c008928a496184a7d22d08afd25ababede62d73bf4df09d32e3f1ca92cab4437d73b183f9faefdfeeab69ec324ed4d3d0ce6c7647d85ef8bfb653 remove-systemd.patch 2730b5d3d627e5d6140df1509a4676e4a8429f73a12804b88f0ef7dab46097f35ac209f3456bb0094a09843ebb810887a6392c3a6a308d27f43f2ea9621e586d fix-poll_h.patch"