First Commit

This commit is contained in:
2026-05-13 11:01:57 +02:00
commit 370f486b39
3 changed files with 37 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
src/
pkg/
rscli-git/
*.pkg.*
+31
View File
@@ -0,0 +1,31 @@
# Maintainer: Daniel Sánchez Úbeda <dsuinformatica@gmail.com>
pkgname=rscli-git
pkgver=r6.1448fe6 # Esto se actualizará solo al ejecutar makepkg
pkgrel=1
pkgdesc="CLI para la Red Social"
arch=('any')
url="https://git.elordenador.org/RedSocial/cli"
license=('GPL')
depends=('python' 'python-typer' 'python-requests' 'python-prettytable')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
# ESTA ES LA FUNCIÓN QUE TE FALTA:
pkgver() {
cd "$pkgname"
# Cuenta los commits y saca el hash corto
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
+2
View File
@@ -0,0 +1,2 @@
# cli_archpkg