blob: 05d434ade065f3813a646b0ac46913437048e3c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Mantenedor: Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch>
pkgname=upd8all
pkgver=0.1.1
pkgrel=1
pkgdesc="Upd8All: Simplify package updates on Arch Linux with one command. Supports Pacman, Yay, and Homebrew."
arch=('x86_64')
url="https://github.com/felipealfonsog/Upd8All"
license=('BSD 3-Clause')
depends=('python')
source=("https://github.com/felipealfonsog/Upd8All/archive/refs/tags/v.${pkgver}.tar.gz")
sha256sums=('ddb974c52e247f3d03189fabbdb7e9fbc5708a08395d75238181273237c10226')
prepare() {
tar xf "v.${pkgver}.tar.gz" -C "$srcdir" --strip-components=1
}
package() {
# Instalar el script Python
install -Dm755 "$srcdir"/Upd8All-v."${pkgver}"/src/upd8all_updater.py "${pkgdir}/usr/local/bin/upd8all.py"
# Crear un script shell para ejecutar upd8all.py y copiarlo a /usr/local/bin
echo '#!/bin/bash' > upd8all
echo 'python /usr/local/bin/upd8all.py "$@"' >> upd8all
chmod +x upd8all
install -Dm755 upd8all "${pkgdir}/usr/local/bin/upd8all"
}
|