Commit e34ba444 authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

main/rsync: prevent aports version being reported

mkgitver by default uses the version returned by `git describe`. Because
the package is built in the aports tree, it uses the aports version
rather than the version included in the archive in version.h.

Override mkgitver to only use that version, rather than the output of
`git describe`.
parent 41a63084
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rsync
pkgver=3.2.3
pkgrel=2
pkgrel=3
pkgdesc="A file transfer program to keep remote files in sync"
url="https://rsync.samba.org/"
arch="all"
......@@ -25,6 +25,9 @@ source="https://download.samba.org/pub/rsync/rsync-$pkgver.tar.gz
prepare() {
default_prepare
rm testsuite/itemize.test
# Prevent the aports version being used
printf '#!/bin/sh\n\necho "#define RSYNC_GITVER RSYNC_VERSION" >git-version.h\n' >mkgitver
}
build() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment