Add initial AUR packaging for bearhub and bearhub-git

This commit is contained in:
Sebastian Palencsar
2026-05-28 06:12:03 +02:00
parent 7232089a10
commit c51403b542
6 changed files with 152 additions and 0 deletions

12
packaging/aur/README.md Normal file
View File

@@ -0,0 +1,12 @@
# AUR Packaging
This directory contains starter `PKGBUILD` files for publishing Bearhub on the AUR:
- `bearhub/PKGBUILD`: stable package from tagged releases
- `bearhub-git/PKGBUILD`: rolling package from `main`
Before publishing:
1. Generate `.SRCINFO` with `makepkg --printsrcinfo > .SRCINFO` inside each package directory.
2. Build-test locally with `makepkg -si`.
3. Push each package to its own AUR Git repository (`aur@aur.archlinux.org:bearhub.git` and `aur@aur.archlinux.org:bearhub-git.git`).

View File

@@ -0,0 +1,31 @@
pkgbase = bearhub-git
pkgdesc = Arch-first package manager hub (development snapshot, fork of bauh)
pkgver = 0.10.7.r0.g0000000
pkgrel = 1
url = https://github.com/spalencsar/bearhub
arch = any
license = ZLIB
makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = python
depends = python-pyqt5
depends = python-requests
depends = python-colorama
depends = python-pyyaml
depends = python-python-dateutil
optdepends = python-lxml: web application support
optdepends = python-beautifulsoup4: web application support
optdepends = flatpak: flatpak support
optdepends = appimagekit: appimage support
provides = bearhub
provides = bauh
conflicts = bearhub
conflicts = bauh
conflicts = bauh-git
source = git+https://github.com/spalencsar/bearhub.git
sha256sums = SKIP
pkgname = bearhub-git

View File

@@ -0,0 +1,43 @@
pkgname=bearhub-git
pkgver=0.10.7.r0.g0000000
pkgrel=1
pkgdesc="Arch-first package manager hub (development snapshot, fork of bauh)"
arch=('any')
url="https://github.com/spalencsar/bearhub"
license=('ZLIB')
depends=(
'python'
'python-pyqt5'
'python-requests'
'python-colorama'
'python-pyyaml'
'python-python-dateutil'
)
optdepends=(
'python-lxml: web application support'
'python-beautifulsoup4: web application support'
'flatpak: flatpak support'
'appimagekit: appimage support'
)
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=('bearhub' 'bauh')
conflicts=('bearhub' 'bauh' 'bauh-git')
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/bearhub"
local ver
ver="$(sed -n "s/^__version__ = '\(.*\)'/\1/p" bauh/__init__.py)"
printf "%s.r%s.g%s" "$ver" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/bearhub"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/bearhub"
python -m installer --destdir="$pkgdir" dist/*.whl
}

View File

@@ -0,0 +1,30 @@
pkgbase = bearhub
pkgdesc = Arch-first package manager hub (community-maintained fork of bauh)
pkgver = 0.10.7
pkgrel = 2
url = https://github.com/spalencsar/bearhub
arch = any
license = ZLIB
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = python
depends = python-pyqt5
depends = python-requests
depends = python-colorama
depends = python-pyyaml
depends = python-python-dateutil
optdepends = python-lxml: web application support
optdepends = python-beautifulsoup4: web application support
optdepends = flatpak: flatpak support
optdepends = appimagekit: appimage support
provides = bearhub
provides = bauh
conflicts = bearhub-git
conflicts = bauh
conflicts = bauh-git
source = bearhub-0.10.7.tar.gz::https://github.com/spalencsar/bearhub/archive/refs/tags/0.10.7-bearhub.2.tar.gz
sha256sums = fa0ebcc9b37b51b78df3b5d795766fa9d0c09379954fe7d03737404dca7ab2ff
pkgname = bearhub

View File

@@ -0,0 +1,36 @@
pkgname=bearhub
pkgver=0.10.7
pkgrel=2
pkgdesc="Arch-first package manager hub (community-maintained fork of bauh)"
arch=('any')
url="https://github.com/spalencsar/bearhub"
license=('ZLIB')
depends=(
'python'
'python-pyqt5'
'python-requests'
'python-colorama'
'python-pyyaml'
'python-python-dateutil'
)
optdepends=(
'python-lxml: web application support'
'python-beautifulsoup4: web application support'
'flatpak: flatpak support'
'appimagekit: appimage support'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=('bearhub' 'bauh')
conflicts=('bearhub-git' 'bauh' 'bauh-git')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/${pkgver}-bearhub.2.tar.gz")
sha256sums=('fa0ebcc9b37b51b78df3b5d795766fa9d0c09379954fe7d03737404dca7ab2ff')
build() {
cd "$srcdir/$pkgname-${pkgver}-bearhub.2"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$pkgname-${pkgver}-bearhub.2"
python -m installer --destdir="$pkgdir" dist/*.whl
}

Binary file not shown.