Compare commits

...

10 Commits

Author SHA1 Message Date
27070652a7 Feat: add build workflow
All checks were successful
Build package / build-package (push) Successful in 1m11s
2025-07-26 17:26:47 +08:00
xiota
7e275d7d62 13.24.2 2025-03-29 21:14:14 +00:00
xiota
b7876ec67f 13.24.1 2025-01-22 02:24:31 +00:00
xiota
ec3048a566 13.23 2024-12-29 18:18:01 +00:00
xiota
bd09797bb2 13.22 2024-12-21 01:34:54 +00:00
xiota
91a34afaa8 13.20 2024-08-25 15:09:04 +00:00
xiota
10f14d7dc6 13.19 2024-08-22 11:36:11 +00:00
xiota
b580b87062 13.18 2024-08-14 23:06:22 +00:00
xiota
2a8c59f4fb 13.16 2024-06-20 09:24:26 +00:00
xiota
21d4301c55 13.15.3 2024-03-28 04:50:10 +00:00
4 changed files with 45 additions and 66 deletions

View File

@@ -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

View File

@@ -0,0 +1,13 @@
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 }}

5
.nvchecker.toml Normal file
View File

@@ -0,0 +1,5 @@
[debhelper]
source = "git"
git = "https://salsa.debian.org/debian/debhelper.git"
prefix = "debian/"
include_regex = 'debian/([0-9\.]+)'

View File

@@ -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: