blob: 21b1303bf54cfc3ecfeca7163163e3395682bbd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Maintainer: Daniel Peukert <daniel@peukert.cc>
pkgname='tarnation'
pkgver='1.2.0'
_commit='c5d8a17650b0b26e7d52ef4b274fea8d87c5c8b8'
pkgrel='1'
pkgdesc='Simple, extensible backup/restore utility based solely on GNU Tar'
arch=('any')
url="https://github.com/kennyparsons/$pkgname"
license=('GPL-3.0-only')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$_commit.tar.gz")
sha512sums=('db07ca1c535bd901c7ccb6909d1738377372349d472297cb726aff9b79baa2cf66489edb82b0cf4a068c7ca2a26c8ca992d1f1b5aa76af55344417cc8b49121f')
_sourcedirectory="$pkgname-$_commit"
check() {
_checkoutput="$("$srcdir/$_sourcedirectory/$pkgname.sh" || :)"
printf '%s\n' "$_checkoutput"
printf '%s\n' "$_checkoutput" | grep -q 'the backup destination root directory$'
}
package() {
install -Dm755 "$srcdir/$_sourcedirectory/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}
|