diff options
author | sravanpannala | 2022-10-14 21:20:31 -0400 |
---|---|---|
committer | sravanpannala | 2022-10-14 21:20:31 -0400 |
commit | 776f27d86f3fc4033a6a1400499a58b3b5651510 (patch) | |
tree | 0f52a0e82b3725fc2e59c068b3af3250cf95dbf2 /PKGBUILD | |
parent | 4e80d7130dcaa5ef79d8f5e2bf3120eb27ce9874 (diff) | |
download | aur-snapper-git.tar.gz |
update PKGBUILD with arch patches
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 48 |
1 files changed, 24 insertions, 24 deletions
@@ -1,5 +1,7 @@ -# Maintainer: Tom Kuther <archlinux@kuther.net> -# Co-Maintainer: NicoHood <archlinux {cat} nicohood {dog} de> +# Maintainer: Sravan Pannala <sradjoker@endeavouros.com> +# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> +# Contributor: Tom Kuther <gimpel@sonnenkinder.org> +# Contributor: NicoHood <archlinux {cat} nicohood {dog} de> pkgname=snapper-git _gitname=snapper @@ -8,14 +10,23 @@ pkgrel=1 pkgdesc="A tool for managing BTRFS and LVM snapshots. It can create, diff and restore snapshots and provides timelined auto-snapping." provides=('snapper') conflicts=('snapper') -arch=('i686' 'x86_64') +arch=('x86_64' 'aarch64') url="http://snapper.io" license=('GPL2') -depends=('btrfs-progs' 'libxml2' 'dbus' 'boost-libs' 'acl') +depends=('btrfs-progs' 'libxml2' 'dbus' 'boost-libs' 'acl' 'json-c') makedepends=('boost' 'lvm2' 'libxslt' 'docbook-xsl' 'pam' 'git' 'systemd') +optdepends=('pam: pam_snapper') backup=('etc/conf.d/snapper') -source=('snapper::git+https://github.com/openSUSE/snapper.git') -sha512sums=('SKIP') +source=("snapper::git+https://github.com/openSUSE/snapper.git" + "conf-d.patch" + "cron-rename.patch" + "drift-file-path.patch" + "usr-paths.patch") +sha256sums=('SKIP' + '267118a198583fc1ff10f376e108c0600844e0b1370e44ac4674b20332bff106' + '0e76f2aef9ac05d719e25c2d60e7eba4b533778a57fe98fd047f256c6845f65f' + '093c7993e466a0cf9c0794a971825f5f1b40047512857bc124ed0d63dbb306d6' + '710da7638a1c123a6985398a15cd7c03432fc3b2d781e2d7a20a1a52669eed95') pkgver() { cd "$_gitname" @@ -24,24 +35,10 @@ pkgver() { prepare() { cd "$_gitname" - - # cron names - sed -e 's@suse.de-snapper@snapper@g' -i scripts/Makefile.am - - # fix sysconf dir - sed -e 's@/etc/sysconfig@/etc/conf.d@g' -i scripts/*snapper* - - # fix pam plugin install location - sed -i -e 's@shell echo /@shell echo /usr/@g' pam/Makefile.am - - # all in /usr/bin - sed -i -e 's@/usr/sbin@/usr/bin@g' data/org.opensuse.Snapper.service - - # NTP drift file location - sed -i -e 's@/var/lib/ntp/drift/ntp.drift@/var/lib/ntp/ntp.drift@' data/base.txt - - # man pages sysconfig location - sed -i -e 's@/etc/sysconfig@/etc/conf.d@g' doc/* + patch -p1 -i "$srcdir/conf-d.patch" + patch -p1 -i "$srcdir/cron-rename.patch" + patch -p1 -i "$srcdir/drift-file-path.patch" + patch -p1 -i "$srcdir/usr-paths.patch" } build() { @@ -55,6 +52,7 @@ build() { ./configure --prefix=/usr \ --sbindir=/usr/bin \ --with-conf=/etc/conf.d \ + --with-pam-security=/usr/lib/security \ --disable-zypp \ --disable-silent-rules make @@ -66,4 +64,6 @@ package() { make DESTDIR="$pkgdir" install install -Dm644 data/sysconfig.snapper \ "$pkgdir"/etc/conf.d/snapper + + rm -rf "$pkgdir/usr/lib/snapper/testsuite/" } |