This commit is contained in:
xiota
2024-08-14 22:39:30 +00:00
parent 2a8c59f4fb
commit b580b87062
2 changed files with 20 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
pkgbase = debhelper pkgbase = debhelper
pkgdesc = A collection of programs that can be used in a debian/rules file to automate common tasks pkgdesc = A collection of programs that can be used in a debian/rules file to automate common tasks
pkgver = 13.16 pkgver = 13.18
pkgrel = 1 pkgrel = 1
url = https://salsa.debian.org/debian/debhelper url = https://salsa.debian.org/debian/debhelper
arch = any arch = any
@@ -10,11 +10,10 @@ pkgbase = debhelper
depends = dpkg depends = dpkg
depends = perl-pod-parser depends = perl-pod-parser
optdepends = dh-make: convert source archives into Debian package source optdepends = dh-make: convert source archives into Debian package source
provides = dh-strip-nondeterminism
conflicts = dh-strip-nondeterminism conflicts = dh-strip-nondeterminism
source = git+https://salsa.debian.org/debian/debhelper.git#tag=debian/13.16 source = debhelper::git+https://salsa.debian.org/debian/debhelper.git#tag=debian/13.18
source = dh_strip_nondeterminism-dh_13.16::https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/raw/master/bin/dh_strip_nondeterminism source = strip-nondeterminism::git+https://salsa.debian.org/reproducible-builds/strip-nondeterminism.git
sha256sums = SKIP sha256sums = fb609f50ae783723423d963aebd3bdebb82b3b563184e81a2dc625297a18f653
sha256sums = SKIP sha256sums = SKIP
pkgname = debhelper pkgname = debhelper

View File

@@ -3,13 +3,9 @@
# Contributor: Antoine Lubineau <antoine@lubignon.info> # Contributor: Antoine Lubineau <antoine@lubignon.info>
# Contributor: Charles Pigott <charlespigott@googlemail.com> # Contributor: Charles Pigott <charlespigott@googlemail.com>
## useful links:
# https://salsa.debian.org/debian/debhelper
# https://salsa.debian.org/reproducible-builds/strip-nondeterminism
_pkgname="debhelper" _pkgname="debhelper"
pkgname="$_pkgname" pkgname="$_pkgname"
pkgver=13.16 pkgver=13.18
pkgrel=1 pkgrel=1
pkgdesc="A collection of programs that can be used in a debian/rules file to automate common tasks" pkgdesc="A collection of programs that can be used in a debian/rules file to automate common tasks"
url="https://salsa.debian.org/debian/debhelper" url="https://salsa.debian.org/debian/debhelper"
@@ -28,22 +24,22 @@ optdepends=(
'dh-make: convert source archives into Debian package source' 'dh-make: convert source archives into Debian package source'
) )
_pkgsrc="$_pkgname" _source_main() {
source=("git+$url.git#tag=debian/${pkgver%%.r*}") _pkgsrc="$_pkgname"
sha256sums=('SKIP') source=("$_pkgsrc"::"git+$url.git#tag=debian/$pkgver")
sha256sums=('fb609f50ae783723423d963aebd3bdebb82b3b563184e81a2dc625297a18f653')
pkgver() {
echo "${pkgver%%.r*}"
} }
provides+=("dh-strip-nondeterminism") _source_dh_strip_nd() {
conflicts+=("dh-strip-nondeterminism") conflicts+=("dh-strip-nondeterminism")
# dh_strip_nondeterminism _pkgsrc_dh_strip_nd="strip-nondeterminism"
_dh_strip_nondeterminism_url="https://salsa.debian.org/reproducible-builds/strip-nondeterminism" source+=("$_pkgsrc_dh_strip_nd"::"git+https://salsa.debian.org/reproducible-builds/strip-nondeterminism.git")
_dh_strip_nondeterminism_script="dh_strip_nondeterminism-dh_${pkgver%%.r*}" sha256sums+=('SKIP')
source+=("$_dh_strip_nondeterminism_script"::"$_dh_strip_nondeterminism_url/-/raw/master/bin/dh_strip_nondeterminism") }
sha256sums+=('SKIP')
_source_main
_source_dh_strip_nd
prepare() { prepare() {
cd "$_pkgsrc" cd "$_pkgsrc"
@@ -69,7 +65,6 @@ package() {
'po-debconf' 'po-debconf'
) )
cd "$_pkgsrc" make -C "$_pkgsrc" DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install install -Dm755 "$_pkgsrc_dh_strip_nd/bin/dh_strip_nondeterminism" -t "$pkgdir/usr/bin/"
install -Dm755 "$srcdir/$_dh_strip_nondeterminism_script" "$pkgdir/usr/bin/dh_strip_nondeterminism"
} }