Add random-file-picker-git

This commit is contained in:
2026-03-13 21:45:59 +02:00
parent c1542f3336
commit f20dcd259d
3 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# Maintainer: Dominykas Svetikas <dominykas@svetikas.lt>
pkgname=random-file-picker-git
_pkgname=random-file-picker
pkgver=r2.ed55631
pkgrel=1
pkgdesc='A tool for picking random files from a directory for viewing.'
arch=('any')
url='https://git.svetikas.lt/JustAnyone/random-file-picker'
license=('MIT')
depends=('python' 'python-requests')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'python-uv' 'git')
conflicts=('random-file-picker')
provides=('random-file-picker')
source=("git+$url.git")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "$_pkgname"
uv build --wheel --no-build-isolation --python /usr/bin/python3
}
package() {
cd "$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}