|
1 | 1 | #Maintainer: Leonardo Berbert <leo4berbert@gmail.com> |
2 | 2 | #Maintainer: Tales A. Mendonça <talesam@gmail.com> |
| 3 | +#Maintainer: Bruno Gonçalves <www.biglinux.com.br> |
3 | 4 |
|
4 | 5 | pkgname=ashyterm |
5 | | -pkgdesc="A modern GTK4/Adwaita terminal emulator with advanced session management, SSH integration, and security features." |
6 | | -# Uncomment and edit the following lines as needed |
| 6 | +pkgdesc="A modern GTK4/Adwaita terminal emulator with advanced session management, SSH integration, File Manager, and security features." |
| 7 | + |
7 | 8 | depends=( |
8 | 9 | 'gtk4' |
9 | 10 | 'libadwaita' |
| 11 | + 'libsecret' |
10 | 12 | 'python' |
11 | 13 | 'python-py7zr' |
12 | 14 | 'python-gobject' |
13 | 15 | 'python-setproctitle' |
| 16 | + 'python-requests' |
14 | 17 | 'sshpass' |
| 18 | + 'rsync' |
15 | 19 | 'vte4' |
16 | | - 'libchildenv' |
17 | | - 'jemalloc' |
| 20 | + 'libchildenv' # Optional, but recommended to improve GTK memory management. |
| 21 | + 'mimalloc' # Optional, but recommended to improve GTK memory management. |
| 22 | +) |
| 23 | +makedepends=( |
| 24 | + 'python-build' |
| 25 | + 'python-installer' |
| 26 | + 'python-uv-build' |
| 27 | + 'python-wheel' |
18 | 28 | ) |
| 29 | +#optdepends=('') |
| 30 | + |
19 | 31 | conflicts=('comm-ashyterm') |
20 | 32 | provides=('comm-ashyterm') |
21 | 33 | replaces=('comm-ashyterm') |
22 | | -#makedepends=('') |
23 | | -#optdepends=('') |
24 | | -pkgver=$(date +%y.%m.%d) |
25 | | -pkgrel=$(date +%H%M) |
| 34 | + |
| 35 | +pkgver="0.1.0" |
| 36 | +pkgrel="1" |
| 37 | + |
26 | 38 | arch=('any') |
27 | 39 | license=('MIT') |
28 | 40 | url="https://github.com/big-comm/${pkgname}" |
29 | 41 | _gitbranch="main" |
30 | 42 | source=("git+${url}.git#branch=${_gitbranch}") |
31 | 43 | md5sums=('SKIP') |
32 | 44 |
|
33 | | -# Automatically detect and use the correct install file |
34 | | -if [ -e "${pkgname}.install" ]; then |
35 | | - install=${pkgname}.install |
36 | | -elif [ -e "pkgbuild.install" ]; then |
37 | | - install=pkgbuild.install |
38 | | -fi |
39 | | - |
40 | | -prepare() { |
41 | | - cd "${srcdir}/${pkgname}" |
42 | | - # Add any preparation steps here, if needed |
43 | | - # For example: patch -p1 < "${srcdir}/patch-file.patch" |
44 | | -} |
45 | | - |
46 | 45 | build() { |
47 | 46 | cd "${srcdir}/${pkgname}" |
48 | | - # Add build steps here, if needed |
49 | | - # For example: make |
50 | | -} |
51 | | - |
52 | | -check() { |
53 | | - cd "${srcdir}/${pkgname}" |
54 | | - # Add check/test steps here, if needed |
55 | | - # For example: make check |
| 47 | + python -m build --wheel --no-isolation --skip-dependency-check |
56 | 48 | } |
57 | 49 |
|
58 | 50 | package() { |
59 | 51 | cd "${srcdir}/${pkgname}" |
60 | 52 |
|
61 | | - # Determine the correct source directory |
62 | | - if [ -d "${pkgname}" ]; then |
63 | | - srcdir="${srcdir}/${pkgname}/${pkgname}" |
64 | | - else |
65 | | - srcdir="${srcdir}/${pkgname}" |
66 | | - fi |
| 53 | + python -m installer --destdir="$pkgdir" dist/*.whl |
67 | 54 |
|
68 | 55 | # Install files |
69 | | - local dirs=("usr" "etc" "opt") |
70 | | - for dir in "${dirs[@]}"; do |
71 | | - if [ -d "${srcdir}/${dir}" ]; then |
72 | | - cp -a "${srcdir}/${dir}" "${pkgdir}/" |
73 | | - fi |
74 | | - done |
| 56 | + cp -a usr/share "${pkgdir}/usr/share" |
75 | 57 |
|
76 | 58 | # Install license file if present |
77 | 59 | if [ -f "LICENSE" ]; then |
|
0 commit comments