blob: 154ecfbea5ea7e84d796b406764d1624bd742808 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Maintainer: dakataca <馃惉danieldakataca@gmail.com>
# Contributor: Cristophero <cristophero.alvarado@gmail.com>
pkgname=pseint-bin
_pkgname=${pkgname%-*}
pkgver=20240122
pkgrel=2
pkgdesc='Tool to learn the basics of programming using a simple and intuitive pseudolanguage in Spanish'
arch=('x86_64')
url='http://pseint.sourceforge.net'
license=('GPL2')
conflicts=("$_pkgname")
makedepends=('rsync')
depends=('wxwidgets-gtk3')
noextract=(creator.psz)
source=("$_pkgname-$pkgver.tgz::https://cfhcable.dl.sourceforge.net/project/$_pkgname/$pkgver/$_pkgname-l64-$pkgver.tgz")
sha256sums=('4ed1945df7a2935ea8da2809ded71f737ddabcbeeaa4976d9b75f7567054b1c5')
# Funci贸n 'prepare': Prepara el entorno antes de compilar/empaquetar el paquete.
prepare() {
cd $_pkgname
cat > $_pkgname.desktop << EOF
[Desktop Entry]
Version=$pkgver-$pkgrel
Type=Application
Name=PSeInt PSeudocode Interpreter.
Name[es]=PSeInt PSeudoc贸digo Int茅rprete.
GenericName=PSeInt
Comment=Tool to learn the basics of programming using a simple and intuitive pseudolanguage in Spanish.
Comment[es]=Herramienta para aprender las bases de la programaci贸n usando un simple e intuitivo pseudolenguaje en espa帽ol.
Exec=/opt/$_pkgname %F
Icon=$_pkgname
Terminal=false
Categories=Development;Education;
EOF
}
# Funci贸n 'pkgver': Devuelve la versi贸n del paquete.
pkgver(){
cd $_pkgname
cat version
}
# Funci贸n 'package': Empaqueta los archivos compilados en el paquete final.
package(){
cd $_pkgname
# Crear el directorio de destino y copiar en 茅l, el contenido de pseint-bin.
rsync -a . --mkpath "$pkgdir/opt/$_pkgname/"
# Instala el archivo .desktop en la ubicaci贸n (-t) adecuada.
install -Dvm644 "$_pkgname.desktop" -t "$pkgdir/usr/share/applications"
# Instalar icono de pseint-bin.
install -Dvm644 "imgs/icon.icns" "$pkgdir/usr/share/pixmaps/$_pkgname.icns"
# Crea un archivo ejecutable en la ubicaci贸n /usr/bin/$_pkgname que ejecuta el programa wxPSeInt(pseint).
install -Dvm755 <(echo -e '#!/usr/bin/env bash\n/opt/pseint/wxPSeInt') $pkgdir/usr/bin/$_pkgname
}
## Update:
# updpkgsums
# makepkg -si
# makepkg --printsrcinfo > .SRCINFO
# git clean -dfx
## References
# Site: https://sourceforge.net/projects/pseint/files/
# Tarball: https://sourceforge.net/projects/pseint/files/20240122/pseint-l64-20240122.tgz/download
# WebHelp: https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry
# WebHelp: https://www.gnu.org/software/bash/manual/html_node/Process-Substitution.html
# WebHelp: https://wiki.archlinux.org/title/Desktop_entries#How_to_use
## Clean:
# rm -rf pseint-* src/ pkg/
# 馃懁 Autor: https://t.me/dakataca 馃捇 馃惉 #
|