Compare commits
11 Commits
cdf78cbbe1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
d1879caa74
|
|||
|
de195d7fe0
|
|||
|
|
56d0b56034 | ||
|
|
232b01eeec | ||
|
|
da00a576e0 | ||
|
|
3ece8e10bf | ||
|
|
724f305e6f | ||
|
|
20b3c93d78 | ||
|
|
ecaca5a84c | ||
|
|
ba60b304b8 | ||
|
|
9be17f02eb |
45
.SRCINFO
45
.SRCINFO
@@ -1,38 +1,23 @@
|
|||||||
pkgbase = sensible-utils
|
pkgbase = sensible-utils
|
||||||
pkgdesc = Utilities for sensible alternative selection
|
pkgdesc = Utilities for sensible alternative selection
|
||||||
pkgver = 0.0.19
|
pkgver = 0.0.24
|
||||||
pkgrel = 2
|
pkgrel = 2
|
||||||
url = http://packages.debian.org/source/sid/sensible-utils
|
url = https://salsa.debian.org/debian/sensible-utils
|
||||||
arch = any
|
arch = any
|
||||||
license = GPL
|
license = GPL-2.0-or-later
|
||||||
checkdepends = ed
|
checkdepends = ed
|
||||||
|
checkdepends = shellcheck
|
||||||
makedepends = po4a
|
makedepends = po4a
|
||||||
depends = bash
|
depends = bash
|
||||||
depends = coreutils
|
provides = sensible-browser=0.0.24
|
||||||
provides = sensible-pager
|
provides = sensible-editor=0.0.24
|
||||||
provides = sensible-editor
|
conflicts = sensible-browser-git
|
||||||
provides = sensible-browser
|
conflicts = sensible-editor-git
|
||||||
conflicts = sensible-pager
|
conflicts = sensible-pager-git
|
||||||
conflicts = sensible-editor
|
conflicts = sensible-terminal-git
|
||||||
conflicts = sensible-browser
|
conflicts = sensible-utils-data-git
|
||||||
source = http://ftp.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.19.tar.xz
|
conflicts = sensible-utils-git
|
||||||
source = http://ftp.debian.org/debian/pool/main/s/sensible-utils/sensible-utils_0.0.19.dsc
|
source = sensible-utils-0.0.24.tar.gz::https://salsa.debian.org/debian/sensible-utils/-/archive/debian/0.0.24/sensible-utils-debian-0.0.24.tar.gz
|
||||||
source = 0001-no-fork-bomb-test.patch
|
sha256sums = 2acbc0029a4b02e8447ab0c07557e0c296c21cf338e044efe37a3bd16a18e418
|
||||||
source = 0001-no-fork-bomb-test.patch.sig
|
|
||||||
source = sensible-utils_0.0.19.dsc.sig
|
|
||||||
source = sensible-utils_0.0.19.tar.xz.sig
|
|
||||||
validpgpkeys = 98F28F767470129FBE3B054CE2154DD1A1C77B8B
|
|
||||||
sha256sums = 3af5fe874c9e643b3d413d4f1b71009194c9093225e9dd49de86e2e604721d69
|
|
||||||
sha256sums = 758218a18c89964da1b2bcfb1e457949ef4e9ccc18a5b9061bb547b617167e1b
|
|
||||||
sha256sums = 063c12d9dfb193f94ded0de3384a78a463c72d0fb1eb3b8edbafe418efaebc46
|
|
||||||
sha256sums = SKIP
|
|
||||||
sha256sums = SKIP
|
|
||||||
sha256sums = SKIP
|
|
||||||
|
|
||||||
pkgname = sensible-pager
|
pkgname = sensible-utils
|
||||||
|
|
||||||
pkgname = sensible-editor
|
|
||||||
|
|
||||||
pkgname = sensible-browser
|
|
||||||
|
|
||||||
pkgname = sensible-utils-data
|
|
||||||
|
|||||||
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 }}
|
||||||
5
.nvchecker.toml
Normal file
5
.nvchecker.toml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[sensible-utils]
|
||||||
|
source = "git"
|
||||||
|
git = "https://salsa.debian.org/debian/sensible-utils.git"
|
||||||
|
prefix = "debian/"
|
||||||
|
include_regex = 'debian/([0-9\.]+)'
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
6c6
|
|
||||||
< TESTS = test/ed-as-sensible-editor test/echo-as-browser test/ed-as-visual test/ed-as-fallback test/error-out test/fork-bomb test/shell-script test/failure-propagation test/echo-as-pager
|
|
||||||
---
|
|
||||||
> TESTS = test/ed-as-sensible-editor test/echo-as-browser test/ed-as-visual test/ed-as-fallback test/error-out test/shell-script test/failure-propagation test/echo-as-pager
|
|
||||||
Binary file not shown.
128
PKGBUILD
128
PKGBUILD
@@ -1,96 +1,66 @@
|
|||||||
#!/bin/bash
|
# Maintainer:
|
||||||
# Maintainer: Fredrick R. Brennan <copypaste@kittens.ph>
|
# Contributor: Fredrick R. Brennan <copypaste@kittens.ph>
|
||||||
|
# Contributor: éclairevoyant
|
||||||
# Contributor: Brian BIdulock <bidulock@openss7.org>
|
# Contributor: Brian BIdulock <bidulock@openss7.org>
|
||||||
pkgbase=sensible-utils
|
|
||||||
pkgname=(sensible-pager sensible-editor sensible-browser sensible-utils-data)
|
: ${_build_man_extra=false}
|
||||||
pkgver=0.0.19
|
|
||||||
_debianextra=''
|
export -n BROWSER EDITOR VISUAL PAGER TERMINAL_EMULATOR
|
||||||
|
|
||||||
|
_pkgname="sensible-utils"
|
||||||
|
pkgname="$_pkgname"
|
||||||
|
pkgver=0.0.24
|
||||||
pkgrel=2
|
pkgrel=2
|
||||||
pkgdesc="Utilities for sensible alternative selection"
|
pkgdesc="Utilities for sensible alternative selection"
|
||||||
|
url="https://salsa.debian.org/debian/sensible-utils"
|
||||||
|
license=('GPL-2.0-or-later')
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="http://packages.debian.org/source/sid/sensible-utils"
|
|
||||||
license=('GPL')
|
|
||||||
depends=('bash' 'coreutils')
|
|
||||||
provides=(sensible-pager sensible-editor sensible-browser)
|
|
||||||
conflicts=(sensible-pager sensible-editor sensible-browser)
|
|
||||||
makedepends=('po4a')
|
|
||||||
checkdepends=('ed')
|
|
||||||
source=("http://ftp.debian.org/debian/pool/main/s/$pkgbase/${pkgbase}_${pkgver}${_debianextra}.tar.xz"
|
|
||||||
"http://ftp.debian.org/debian/pool/main/s/$pkgbase/${pkgbase}_${pkgver}${_debianextra}.dsc"
|
|
||||||
"0001-no-fork-bomb-test.patch"
|
|
||||||
"0001-no-fork-bomb-test.patch.sig"
|
|
||||||
"sensible-utils_0.0.19.dsc.sig"
|
|
||||||
"sensible-utils_0.0.19.tar.xz.sig")
|
|
||||||
sha256sums=('3af5fe874c9e643b3d413d4f1b71009194c9093225e9dd49de86e2e604721d69'
|
|
||||||
'758218a18c89964da1b2bcfb1e457949ef4e9ccc18a5b9061bb547b617167e1b'
|
|
||||||
'063c12d9dfb193f94ded0de3384a78a463c72d0fb1eb3b8edbafe418efaebc46'
|
|
||||||
'SKIP'
|
|
||||||
'SKIP'
|
|
||||||
'SKIP')
|
|
||||||
validpgpkeys=('98F28F767470129FBE3B054CE2154DD1A1C77B8B')
|
|
||||||
|
|
||||||
prepare() {
|
depends=(
|
||||||
pushd ${pkgbase}-${pkgver}${_debianextra}
|
'bash'
|
||||||
OPWD="$PWD"
|
)
|
||||||
popd
|
makedepends=(
|
||||||
patch -p0 "$OPWD/Makefile.am" < 0001-no-fork-bomb-test.patch
|
'po4a'
|
||||||
}
|
)
|
||||||
|
checkdepends=(
|
||||||
|
'ed'
|
||||||
|
'shellcheck'
|
||||||
|
)
|
||||||
|
|
||||||
|
provides=(
|
||||||
|
"sensible-browser=$pkgver"
|
||||||
|
"sensible-editor=$pkgver"
|
||||||
|
)
|
||||||
|
conflicts=(
|
||||||
|
'sensible-browser-git'
|
||||||
|
'sensible-editor-git'
|
||||||
|
'sensible-pager-git'
|
||||||
|
'sensible-terminal-git'
|
||||||
|
'sensible-utils-data-git'
|
||||||
|
'sensible-utils-git'
|
||||||
|
)
|
||||||
|
|
||||||
|
_pkgsrc="$_pkgname-debian-$pkgver"
|
||||||
|
_pkgext="tar.gz"
|
||||||
|
source=("$_pkgname-$pkgver.$_pkgext"::"$url/-/archive/debian/$pkgver/$_pkgsrc.$_pkgext")
|
||||||
|
sha256sums=('2acbc0029a4b02e8447ab0c07557e0c296c21cf338e044efe37a3bd16a18e418')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgbase}-${pkgver}${_debianextra}
|
cd "$_pkgsrc"
|
||||||
export -n EDITOR VISUAL
|
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
build_sensible-utils() {
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd ${pkgbase}-${pkgver}${_debianextra}
|
cd "$_pkgsrc"
|
||||||
bash -c 'make -k check'
|
make -k check || true
|
||||||
}
|
}
|
||||||
|
|
||||||
_package_sensible() {
|
package() {
|
||||||
cd ${pkgbase}-${pkgver}${_debianextra}
|
cd "$_pkgsrc"
|
||||||
pkgdesc="$pkgdesc (${pkgname##*-})"
|
|
||||||
provides=()
|
|
||||||
conflicts=()
|
|
||||||
depends+=(sensible-utils-data)
|
|
||||||
[ "$pkgname" != sensible-utils-data ] && provides=($pkgname)
|
|
||||||
[ "$pkgname" != sensible-utils-data ] && conflicts=($pkgname)
|
|
||||||
[ "$pkgname" == sensible-utils-data ] && depends=(bash)
|
|
||||||
export -n EDITOR VISUAL
|
|
||||||
make DESTDIR="$pkgdir/" install
|
make DESTDIR="$pkgdir/" install
|
||||||
shopt -s globstar
|
|
||||||
cd "$pkgdir"
|
|
||||||
find . -type f -and \( -not -iname "*$CURRENTLY_PACKAGING*" \) | xargs rm -v
|
|
||||||
}
|
|
||||||
|
|
||||||
package_sensible-pager() {
|
if [ "${_build_man_extra::1}" != "t" ]; then
|
||||||
CURRENTLY_PACKAGING=sensible-pager pkgdir="$pkgdir" _package_sensible
|
rm -rf "$pkgdir/usr/share/man"/[a-z][a-z]/
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
package_sensible-browser() {
|
|
||||||
CURRENTLY_PACKAGING=sensible-browser pkgdir="$pkgdir" _package_sensible
|
|
||||||
}
|
|
||||||
|
|
||||||
package_sensible-editor() {
|
|
||||||
CURRENTLY_PACKAGING=editor pkgdir="$pkgdir" _package_sensible
|
|
||||||
}
|
|
||||||
|
|
||||||
package_sensible-utils-data() {
|
|
||||||
CURRENTLY_PACKAGING=gettext pkgdir="$pkgdir" _package_sensible
|
|
||||||
}
|
|
||||||
|
|
||||||
package_sensible-utils() {
|
|
||||||
pkgdesc="$pkgdesc (metapackage)"
|
|
||||||
provides=()
|
|
||||||
conflicts=()
|
|
||||||
depends+=(sensible-pager sensible-editor sensible-browser sensible-utils-data)
|
|
||||||
mkdir -p "$pkgdir/usr/share/sensible-utils"
|
|
||||||
echo 1 > "$pkgdir/usr/share/sensible-utils/.ARCH"
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user