summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd E Johnson2019-07-23 21:29:25 -0500
committerTodd E Johnson2019-07-23 21:32:19 -0500
commitda4d0bcca4a04e3980d506574a225c56206fe8ce (patch)
tree4c7f6be5ddab97ae8d9179f66ebfa60174d0073e
parent0fbf4b8662c921edec76d780568c32cf9c090f77 (diff)
downloadaur-da4d0bcca4a04e3980d506574a225c56206fe8ce.tar.gz
Move to versioned release(0.1.0) instead of git
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD13
2 files changed, 7 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0935c5c1b9f..31c829342d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = restic-systemd-automatic-backup
pkgdesc = Backup solution using restic/Backblaze B2 storage.
- pkgver = r43.bfad34f
+ pkgver = 0.1.0
pkgrel = 1
url = https://github.com/erikw/restic-systemd-automatic-backup
arch = any
@@ -12,8 +12,8 @@ pkgbase = restic-systemd-automatic-backup
backup = etc/restic/b2_env.sh
backup = etc/restic/b2_pw.txt
backup = etc/restic/backup_exclude
- source = restic-systemd-automatic-backup::git+https://github.com/erikw/restic-systemd-automatic-backup.git
- sha256sums = SKIP
+ source = https://github.com/erikw/restic-systemd-automatic-backup/archive/v0.1.0.tar.gz
+ sha256sums = 1efb1e1c9c1ef8b312f2c3c76a9176b37182dc88ef99357c1a14715e64f63798
pkgname = restic-systemd-automatic-backup
diff --git a/PKGBUILD b/PKGBUILD
index 533ec734f1c..0e5a1c3e1a1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Todd E Johnson <todd@toddejohnson.net>
pkgname=restic-systemd-automatic-backup
-pkgver=r43.bfad34f
+pkgver=0.1.0
pkgrel=1
pkgdesc="Backup solution using restic/Backblaze B2 storage."
arch=('any')
@@ -9,17 +9,12 @@ url="https://github.com/erikw/restic-systemd-automatic-backup"
license=('BSD' 'custom')
depends=('systemd' 'restic')
makedepends=('git')
-source=("${pkgname}::git+https://github.com/erikw/restic-systemd-automatic-backup.git")
-sha256sums=('SKIP')
+source=("https://github.com/erikw/restic-systemd-automatic-backup/archive/v$pkgver.tar.gz")
+sha256sums=('1efb1e1c9c1ef8b312f2c3c76a9176b37182dc88ef99357c1a14715e64f63798')
backup=('etc/restic/b2_env.sh' 'etc/restic/b2_pw.txt' 'etc/restic/backup_exclude')
-pkgver() {
- cd "$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
package() {
- cd "$pkgname"
+ cd "$pkgname-$pkgver"
make PREFIX="$pkgdir" DEST_SCRIPTS="$pkgdir/usr/bin" DEST_SYSTEMD="$pkgdir/usr/lib/systemd/system" install
sed -e 's|/usr/local/sbin|/usr/bin|g' -i $pkgdir/usr/lib/systemd/system/*
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"