# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=snapper pkgver=0.8.2 pkgrel=0 pkgdesc="Manage filesystem snapshots and allow undo of system modifications" url="https://snapper.io" arch="all !armhf !armv7" # 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 musl-dbus.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="53e801e5e3c939a63833fab143c665e2289e128004dd67dcc98826b994d2150b268af021505b0f98982d66ea520a2d98279da15a904a003f2a0a1f1fac80124f snapper-0.8.2.tar.gz a9eec8105e94c4eb097aa293754b0de45420a297ad845933a7be66b3ff49af409dd427e9bd1de569c49982c619211d1e90183ed8bf8550acb0fa9d83176e22bf 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 a0c25dc1cc7ec1cc512f41302ecd293b2207902a79b9d2ee3b92585d1aab554f5c0546add8fb12ad3b5936636f3a86516287ac1667122c6045f5ef33fcbfc14b musl-boost.patch 719c0dbc8c9c008928a496184a7d22d08afd25ababede62d73bf4df09d32e3f1ca92cab4437d73b183f9faefdfeeab69ec324ed4d3d0ce6c7647d85ef8bfb653 remove-systemd.patch 2730b5d3d627e5d6140df1509a4676e4a8429f73a12804b88f0ef7dab46097f35ac209f3456bb0094a09843ebb810887a6392c3a6a308d27f43f2ea9621e586d fix-poll_h.patch 11627af9713013dfc4cbdca5a5be644cd49fe205edcaa6eaf64507903edd241f262e40e97a091b0f8ee3b495fe2c8fb904e4dbcc0e4e5bfabcc16c66654f561b musl-dbus.patch"