blob: b059b40726f83c8e31b3fd7569a6f4751fef693c (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# Maintainer: Narayan Lima da Silva <narayan.song@gmail.com>
# Contributor: Tales Mendonça <talesam@gmail.com>
pkgname=tac-writer
pkgdesc="Academic writing assistant using the Continuous Argumentation Technique (TAC)"
# Uncomment and edit the following lines as needed
depends=(
'gtk4'
'libadwaita'
'python'
'python-gobject'
'python-reportlab'
'python-gtkspellcheck'
'python-pyenchant'
'python-pillow'
'python-requests'
'gettext'
'ttf-liberation'
'python-pypdf'
'hunspell-pt-br'
'hunspell-en_us'
'hunspell-es_any'
'python-pylatex'
'texlive-langportuguese'
'python-dropbox'
'texlive-latexextra'
'python-cryptography'
'python-matplotlib'
)
makedepends=('gettext')
optdepends=(
'hunspell-bg: For Bulgarian spell checking'
'hunspell-de: For German spell checking'
'hunspell-el: For Greek spell checking'
'hunspell-en_us: For US English spell checking'
'hunspell-en_gb: For British English spell checking'
'hunspell-en_ca: For Canadian English spell checking'
'hunspell-es_es: For Spanish (Spain) spell checking'
'hunspell-es_any: For Spanish (generic) spell checking'
'hunspell-fr: For French spell checking'
'hunspell-he: For Hebrew spell checking'
'hunspell-hu: For Hungarian spell checking'
'hunspell-it: For Italian spell checking'
'hunspell-nl: For Dutch spell checking'
'hunspell-pl: For Polish spell checking'
'hunspell-pt-br: For Brazilian Portuguese spell checking'
'hunspell-ro: For Romanian spell checking'
'hunspell-ru: For Russian spell checking'
'hunspell-sk: For Slovak spell checking'
)
#conflicts=
#provides=
#replaces=
pkgver=1.5.0.1.1
pkgrel=1
epoch=1
arch=('any')
license=('GPL-3.0')
url="https://github.com/narayanls/${pkgname}"
source=("git+${url}.git")
md5sums=('SKIP')
# Automatically detect and use the correct install file
if [ -e "${pkgname}.install" ]; then
install=${pkgname}.install
elif [ -e "pkgbuild.install" ]; then
install=pkgbuild.install
fi
prepare() {
cd "${srcdir}/${pkgname}"
# Add any preparation steps here, if needed
# For example: patch -p1 < "${srcdir}/patch-file.patch"
}
build() {
cd "${srcdir}/${pkgname}"
# Add build steps here, if needed
# For example: make
}
check() {
cd "${srcdir}/${pkgname}"
# Add check/test steps here, if needed
# For example: make check
}
package() {
cd "${srcdir}/${pkgname}"
# Determine the correct source directory
if [ -d "${pkgname}" ]; then
srcdir="${srcdir}/${pkgname}/${pkgname}"
else
srcdir="${srcdir}/${pkgname}"
fi
# Install files
local dirs=("usr" "etc" "opt")
for dir in "${dirs[@]}"; do
if [ -d "${srcdir}/${dir}" ]; then
cp -a "${srcdir}/${dir}" "${pkgdir}/"
fi
done
# Install symbolic icons
if [ -d "${srcdir}/tac-writer/icons/hicolor" ]; then
echo "Instalando ícones simbólicos adicionais..."
install -d "${pkgdir}/usr/share/icons/hicolor"
cp -a "${srcdir}/tac-writer/icons/hicolor/"* "${pkgdir}/usr/share/icons/hicolor/"
fi
# Install license file if present
if [ -f "LICENSE" ]; then
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
fi
# Install documentation if present
if [ -f "README.md" ]; then
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
fi
}
|