Compare commits
11 Commits
cb4a364e55
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
5bdd3c31e9
|
|||
|
27070652a7
|
|||
|
|
7e275d7d62 | ||
|
|
b7876ec67f | ||
|
|
ec3048a566 | ||
|
|
bd09797bb2 | ||
|
|
91a34afaa8 | ||
|
|
10f14d7dc6 | ||
|
|
b580b87062 | ||
|
|
2a8c59f4fb | ||
|
|
21d4301c55 |
13
.SRCINFO
13
.SRCINFO
@@ -1,6 +1,6 @@
|
||||
pkgbase = debhelper
|
||||
pkgdesc = A collection of programs that can be used in a debian/rules file to automate common tasks
|
||||
pkgver = 13.15.2
|
||||
pkgdesc = Programs to automate common tasks in debian/rules when building Debian packages
|
||||
pkgver = 13.24.2
|
||||
pkgrel = 1
|
||||
url = https://salsa.debian.org/debian/debhelper
|
||||
arch = any
|
||||
@@ -10,11 +10,10 @@ pkgbase = debhelper
|
||||
depends = dpkg
|
||||
depends = perl-pod-parser
|
||||
optdepends = dh-make: convert source archives into Debian package source
|
||||
provides = dh-strip-nondeterminism
|
||||
conflicts = dh-strip-nondeterminism
|
||||
source = git+https://salsa.debian.org/debian/debhelper.git#tag=debian/13.15.2
|
||||
source = dh_strip_nondeterminism-dh_13.15.2::https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/raw/master/bin/dh_strip_nondeterminism
|
||||
sha256sums = SKIP
|
||||
source = debhelper::git+https://salsa.debian.org/debian/debhelper.git#tag=debian/13.24.2
|
||||
source = strip-nondeterminism::git+https://salsa.debian.org/reproducible-builds/strip-nondeterminism.git
|
||||
sha256sums = e0ca62b4e30047aa7c31391d9a96d9882beaa63af22a2fe658dda37d95458473
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = debhelper
|
||||
@@ -23,6 +22,6 @@ pkgname = debhelper
|
||||
depends = binutils
|
||||
depends = file
|
||||
depends = man-db
|
||||
depends = po-debconf
|
||||
depends = python-html2text
|
||||
depends = strip-nondeterminism
|
||||
depends = po-debconf
|
||||
|
||||
15
.gitea/workflows/build.yml
Normal file
15
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Build package
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-package:
|
||||
runs-on: pkgbuilder
|
||||
env:
|
||||
steps:
|
||||
- name: Build and push package
|
||||
uses: https://gitea.konchin.com/action/archbuild@main
|
||||
with:
|
||||
minio-accesskey: ${{ secrets.MINIO_ACCESSKEY }}
|
||||
minio-secretkey: ${{ secrets.MINIO_SECRETKEY }}
|
||||
gpg-password: ${{ secrets.GPG_PASSWORD }}
|
||||
gpg-keygrip: ${{ secrets.GPG_KEYGRIP }}
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,4 +0,0 @@
|
||||
*
|
||||
!PKGBUILD
|
||||
!.SRCINFO
|
||||
!.gitignore
|
||||
5
.nvchecker.toml
Normal file
5
.nvchecker.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
[debhelper]
|
||||
source = "git"
|
||||
git = "https://salsa.debian.org/debian/debhelper.git"
|
||||
prefix = "debian/"
|
||||
include_regex = 'debian/([0-9\.]+)'
|
||||
80
PKGBUILD
80
PKGBUILD
@@ -3,27 +3,17 @@
|
||||
# Contributor: Antoine Lubineau <antoine@lubignon.info>
|
||||
# Contributor: Charles Pigott <charlespigott@googlemail.com>
|
||||
|
||||
## useful links:
|
||||
# https://salsa.debian.org/debian/debhelper
|
||||
# https://salsa.debian.org/reproducible-builds/strip-nondeterminism
|
||||
: ${_cksum:=e0ca62b4e30047aa7c31391d9a96d9882beaa63af22a2fe658dda37d95458473}
|
||||
|
||||
## options
|
||||
: ${_build_git:=false}
|
||||
|
||||
unset _pkgtype
|
||||
[[ "${_build_git::1}" == "t" ]] && _pkgtype+="-git"
|
||||
|
||||
## basic info
|
||||
_pkgname="debhelper"
|
||||
pkgname="$_pkgname${_pkgtype:-}"
|
||||
pkgver=13.15.2
|
||||
pkgname="$_pkgname"
|
||||
pkgver=13.24.2
|
||||
pkgrel=1
|
||||
pkgdesc="A collection of programs that can be used in a debian/rules file to automate common tasks"
|
||||
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')
|
||||
|
||||
# main package
|
||||
depends=(
|
||||
'dpkg'
|
||||
'perl-pod-parser'
|
||||
@@ -36,46 +26,23 @@ optdepends=(
|
||||
'dh-make: convert source archives into Debian package source'
|
||||
)
|
||||
|
||||
if [ "${_build_git::1}" != "t" ] ; then
|
||||
# stable package
|
||||
_source_main() {
|
||||
_pkgsrc="$_pkgname"
|
||||
source=("git+$url.git#tag=debian/${pkgver%%.r*}")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
echo "${pkgver%%.r*}"
|
||||
}
|
||||
else
|
||||
# git package
|
||||
provides=("$_pkgname=${pkgver%%.r*}")
|
||||
conflicts=("$_pkgname")
|
||||
|
||||
_pkgsrc="$_pkgname"
|
||||
source=("$_pkgsrc"::"git+$url.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$_pkgsrc"
|
||||
git describe --long --tags --abbrev=8 | sed 's/^debian\///;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
fi
|
||||
|
||||
provides+=("dh-strip-nondeterminism")
|
||||
conflicts+=("dh-strip-nondeterminism")
|
||||
|
||||
# dh_strip_nondeterminism
|
||||
_dh_strip_nondeterminism_url="https://salsa.debian.org/reproducible-builds/strip-nondeterminism"
|
||||
_dh_strip_nondeterminism_script="dh_strip_nondeterminism-dh_${pkgver%%.r*}"
|
||||
source+=("$_dh_strip_nondeterminism_script"::"$_dh_strip_nondeterminism_url/-/raw/master/bin/dh_strip_nondeterminism")
|
||||
sha256sums+=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$_pkgsrc"
|
||||
|
||||
# prevent unicode error
|
||||
rm "man/po4a/po"/*.po
|
||||
source=("$_pkgsrc"::"git+$url.git#tag=debian/$pkgver")
|
||||
sha256sums=("${_cksum:?}")
|
||||
}
|
||||
|
||||
_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
|
||||
|
||||
build() {
|
||||
cd "$_pkgsrc"
|
||||
make
|
||||
@@ -86,16 +53,11 @@ package() {
|
||||
'binutils'
|
||||
'file'
|
||||
'man-db'
|
||||
'po-debconf' # AUR
|
||||
'python-html2text'
|
||||
'strip-nondeterminism'
|
||||
|
||||
# AUR
|
||||
'po-debconf'
|
||||
)
|
||||
|
||||
cd "$_pkgsrc"
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm755 "$srcdir/$_dh_strip_nondeterminism_script" "$pkgdir/usr/bin/dh_strip_nondeterminism"
|
||||
make -C "$_pkgsrc" DESTDIR="$pkgdir" install
|
||||
install -Dm755 "$_pkgsrc_dh_strip_nd/bin/dh_strip_nondeterminism" -t "$pkgdir/usr/bin/"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
||||
Reference in New Issue
Block a user