This commit is contained in:
xiota
2024-02-16 17:33:59 -08:00
parent f633155533
commit c33afbc4a8
2 changed files with 29 additions and 15 deletions

View File

@@ -1,28 +1,28 @@
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.11.10 pkgver = 13.13
pkgrel = 1 pkgrel = 1
url = https://salsa.debian.org/debian/debhelper url = https://salsa.debian.org/debian/debhelper
arch = any arch = any
license = GPL2 license = GPL-2.0-or-later
license = GPL3
makedepends = git makedepends = git
makedepends = po4a makedepends = po4a
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 provides = dh-strip-nondeterminism
conflicts = dh-strip-nondeterminism conflicts = dh-strip-nondeterminism
source = git+https://salsa.debian.org/debian/debhelper.git#tag=debian/13.11.10 source = git+https://salsa.debian.org/debian/debhelper.git#tag=debian/13.13
source = dh_strip_nondeterminism::https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/raw/master/bin/dh_strip_nondeterminism source = dh_strip_nondeterminism::https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/raw/master/bin/dh_strip_nondeterminism
sha256sums = SKIP sha256sums = SKIP
sha256sums = SKIP sha256sums = SKIP
pkgname = debhelper pkgname = debhelper
depends = dpkg
depends = perl-pod-parser depends = perl-pod-parser
depends = binutils depends = binutils
depends = dpkg
depends = file depends = file
depends = html2text
depends = man-db depends = man-db
depends = python-html2text
depends = strip-nondeterminism depends = strip-nondeterminism
depends = po-debconf depends = po-debconf

View File

@@ -4,18 +4,26 @@
# Contributor: Charles Pigott <charlespigott@googlemail.com> # Contributor: Charles Pigott <charlespigott@googlemail.com>
# Contributor: Andrei "Garoth" Thorp <garoth "at the nice" gmail "dot" com> # Contributor: Andrei "Garoth" Thorp <garoth "at the nice" gmail "dot" com>
## options
: ${_build_git:=false}
unset _pkgtype
[[ "${_build_git::1}" == "t" ]] && _pkgtype+="-git"
## basic info
_pkgname="debhelper" _pkgname="debhelper"
pkgname="$_pkgname" pkgname="$_pkgname${_pkgtype:-}"
pkgver=13.11.10 pkgver=13.13
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"
license=('GPL2' 'GPL3') license=('GPL-2.0-or-later')
arch=('any') arch=('any')
_url_dh_strip_nondeterminism="https://salsa.debian.org/reproducible-builds/strip-nondeterminism" _url_dh_strip_nondeterminism="https://salsa.debian.org/reproducible-builds/strip-nondeterminism"
depends=( depends=(
'dpkg'
'perl-pod-parser' 'perl-pod-parser'
) )
makedepends=( makedepends=(
@@ -26,8 +34,8 @@ optdepends=(
'dh-make: convert source archives into Debian package source' 'dh-make: convert source archives into Debian package source'
) )
if [ x"$pkgname" == x"$_pkgname" ] ; then if [ "${_build_git::1}" != "t" ] ; then
# normal package # stable package
_pkgsrc="$_pkgname" _pkgsrc="$_pkgname"
source=("git+$url.git#tag=debian/${pkgver%%.r*}") source=("git+$url.git#tag=debian/${pkgver%%.r*}")
sha256sums=('SKIP') sha256sums=('SKIP')
@@ -56,6 +64,13 @@ conflicts+=("dh-strip-nondeterminism")
source+=("dh_strip_nondeterminism"::"$_url_dh_strip_nondeterminism/-/raw/master/bin/dh_strip_nondeterminism") source+=("dh_strip_nondeterminism"::"$_url_dh_strip_nondeterminism/-/raw/master/bin/dh_strip_nondeterminism")
sha256sums+=('SKIP') sha256sums+=('SKIP')
prepare() {
cd "$_pkgsrc"
# prevent unicode error
rm "man/po4a/po"/*.po
}
build() { build() {
cd "$_pkgsrc" cd "$_pkgsrc"
make make
@@ -64,10 +79,9 @@ build() {
package() { package() {
depends+=( depends+=(
'binutils' 'binutils'
'dpkg'
'file' 'file'
'html2text'
'man-db' 'man-db'
'python-html2text'
'strip-nondeterminism' 'strip-nondeterminism'
# AUR # AUR
@@ -75,8 +89,8 @@ package() {
) )
cd "$_pkgsrc" cd "$_pkgsrc"
make DESTDIR="${pkgdir:?}" install make DESTDIR="$pkgdir" install
install -Dm755 "${srcdir:?}/dh_strip_nondeterminism" -t "${pkgdir:?}/usr/bin" install -Dm755 "$srcdir/dh_strip_nondeterminism" -t "$pkgdir/usr/bin"
} }
# vim:set ts=2 sw=2 et: # vim:set ts=2 sw=2 et: