blob: cd0a1ea6d75a972643e9d0189006dd904c7605e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer:
_pkgname="debhelper"
pkgname="$_pkgname-git"
pkgver=13.20.r0.gee766db
pkgrel=1
pkgdesc="Programs to automate common tasks in debian/rules when building Debian packages"
url="https://salsa.debian.org/debian/debhelper"
license=('GPL-2.0-or-later')
arch=('any')
depends=(
'dpkg'
'perl-pod-parser'
)
makedepends=(
'git'
'po4a'
)
optdepends=(
'dh-make: convert source archives into Debian package source'
)
_source_main() {
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')
}
_source_dh_strip_nd() {
conflicts+=("dh-strip-nondeterminism")
_pkgsrc_dh_strip_nd="strip-nondeterminism"
source+=("$_pkgsrc_dh_strip_nd"::"git+https://salsa.debian.org/reproducible-builds/strip-nondeterminism.git")
sha256sums+=('SKIP')
}
_source_main
_source_dh_strip_nd
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 --match='debian/[0-9]*' \
| sed 's/^debian\///;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgsrc"
make
}
package() {
depends+=(
'binutils'
'file'
'man-db'
'python-html2text'
'strip-nondeterminism'
# AUR
'po-debconf'
)
make -C "$_pkgsrc" DESTDIR="$pkgdir" install
install -Dm755 "$_pkgsrc_dh_strip_nd/bin/dh_strip_nondeterminism" -t "$pkgdir/usr/bin/"
}
|