First Commit
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
src/
|
||||
pkg/
|
||||
rscli-git/
|
||||
*.pkg.*
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user