aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2021-09-18 15:59:50 +0200
committerAriadne Conill <ariadne@dereferenced.org>2021-09-20 15:25:32 +0000
commitbc4c8c28bcdaf4bd6911e84d16d3e640f80e66db (patch)
tree0bab0a6c8c037f1ed5065271edf05e5ba3dd7f51
parent1db3873744905d2bf52d5bc1d564e2e656566f95 (diff)
downloadaports-bc4c8c28bcdaf4bd6911e84d16d3e640f80e66db.tar.gz
aports-bc4c8c28bcdaf4bd6911e84d16d3e640f80e66db.tar.bz2
aports-bc4c8c28bcdaf4bd6911e84d16d3e640f80e66db.tar.xz
main/rdiff-backup: fix version reported as 0.0.0
Before: $ rdiff-backup --version rdiff-backup 0.0.0
-rw-r--r--main/rdiff-backup/0003-fix-version.patch11
-rw-r--r--main/rdiff-backup/APKBUILD16
2 files changed, 24 insertions, 3 deletions
diff --git a/main/rdiff-backup/0003-fix-version.patch b/main/rdiff-backup/0003-fix-version.patch
new file mode 100644
index 0000000000..510faecc7a
--- /dev/null
+++ b/main/rdiff-backup/0003-fix-version.patch
@@ -0,0 +1,11 @@
+diff --git a/setup.cfg b/setup.cfg
+index 8bfd5a1..ed1b664 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -1,3 +1,6 @@
++[metadata]
++version = %%PKGVER%%
++
+ [egg_info]
+ tag_build =
+ tag_date = 0
diff --git a/main/rdiff-backup/APKBUILD b/main/rdiff-backup/APKBUILD
index ed59e38215..d3e2e39943 100644
--- a/main/rdiff-backup/APKBUILD
+++ b/main/rdiff-backup/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
pkgname=rdiff-backup
pkgver=2.0.5
-pkgrel=2
+pkgrel=3
pkgdesc="Reverse differential backup tool"
# Requires unpackaged 'xattr'
options="!check"
@@ -17,8 +17,15 @@ subpackages="
source="https://github.com/rdiff-backup/rdiff-backup/releases/download/v$pkgver/rdiff-backup-$pkgver.tar.gz
0001-Resolve-runtime-dependency-on-setuptools-to-get-vers.patch
0002-remove-setuptools_scm.patch
+ 0003-fix-version.patch
"
+prepare() {
+ default_prepare
+ sed -e "s/%%PKGVER%%/$pkgver/" \
+ -i setup.cfg
+}
+
build() {
python3 setup.py build
}
@@ -35,6 +42,9 @@ bashcomp() {
amove usr/share/bash-completion
}
-sha512sums="59482e6d78bc887fc99efd4b4779e9b41c7e4b0427e51b80b18a550d0051e4213a0c200296154759d1734f511f7abe3175d171f018c59c55e5abdfd0a890cfbd rdiff-backup-2.0.5.tar.gz
+sha512sums="
+59482e6d78bc887fc99efd4b4779e9b41c7e4b0427e51b80b18a550d0051e4213a0c200296154759d1734f511f7abe3175d171f018c59c55e5abdfd0a890cfbd rdiff-backup-2.0.5.tar.gz
10788ac9ab17849e3f22a4fcfc9b7cd4ea528067591c00f58fb2f41fbb5773e904665d116d92f21fada4b18147e5d1eb31a042be011021a280e2cb87f6683ed0 0001-Resolve-runtime-dependency-on-setuptools-to-get-vers.patch
-4130fd33ab9048e266f7c9a3c0d069e45df27a7a1cf31265c035e8b75f4283d675624064e6a181e2c282b2d2b91975ae07564a37c2ff60f48e46aeae0f7bc120 0002-remove-setuptools_scm.patch"
+4130fd33ab9048e266f7c9a3c0d069e45df27a7a1cf31265c035e8b75f4283d675624064e6a181e2c282b2d2b91975ae07564a37c2ff60f48e46aeae0f7bc120 0002-remove-setuptools_scm.patch
+236314c5d51d600abbfb55f084b47e0d60e3182be69803bb0abeff50e0d8750ab29b603abbf39b1a6aa94fe7a6593e121abb330bb8a348fcc27c7a0c3f4bed0b 0003-fix-version.patch
+"