Initial commit: tac-writer package

This commit is contained in:
narayanls 2025-12-19 11:23:46 -03:00
commit f42a4f43b2
2 changed files with 155 additions and 0 deletions

48
.SRCINFO Normal file
View file

@ -0,0 +1,48 @@
pkgbase = tac-writer
pkgdesc = Academic writing assistant using the Continuous Argumentation Technique (CAT)
pkgver = 25.12.19
pkgrel = 1123
url = https://github.com/narayanls/tac-writer
arch = any
license = MIT
makedepends = gettext
depends = gtk4
depends = libadwaita
depends = python
depends = python-gobject
depends = python-reportlab
depends = python-gtkspellcheck
depends = python-pyenchant
depends = python-pillow
depends = python-requests
depends = gettext
depends = ttf-liberation
depends = python-pypdf
depends = hunspell-pt-br
depends = hunspell-en_us
depends = hunspell-es_any
optdepends = hunspell-bg: For Bulgarian spell checking
optdepends = hunspell-de: For German spell checking
optdepends = hunspell-el: For Greek spell checking
optdepends = hunspell-en_us: For US English spell checking
optdepends = hunspell-en_gb: For British English spell checking
optdepends = hunspell-en_ca: For Canadian English spell checking
optdepends = hunspell-es_es: For Spanish (Spain) spell checking
optdepends = hunspell-es_any: For Spanish (generic) spell checking
optdepends = hunspell-fr: For French spell checking
optdepends = hunspell-he: For Hebrew spell checking
optdepends = hunspell-hu: For Hungarian spell checking
optdepends = hunspell-it: For Italian spell checking
optdepends = hunspell-nl: For Dutch spell checking
optdepends = hunspell-pl: For Polish spell checking
optdepends = hunspell-pt-br: For Brazilian Portuguese spell checking
optdepends = hunspell-ro: For Romanian spell checking
optdepends = hunspell-ru: For Russian spell checking
optdepends = hunspell-sk: For Slovak spell checking
provides = comm-tac-writer
conflicts = comm-tac-writer
replaces = comm-tac-writer
source = git+https://github.com/narayanls/tac-writer.git
md5sums = SKIP
pkgname = tac-writer

107
PKGBUILD Normal file
View file

@ -0,0 +1,107 @@
# Maintainer: Narayan Lima da Silva <narayan.song@gmail.com>
pkgname=tac-writer
pkgdesc="Academic writing assistant using the Continuous Argumentation Technique (CAT)"
# 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'
)
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=('comm-tac-writer')
provides=('comm-tac-writer')
replaces=('comm-tac-writer')
pkgver=$(date +%y.%m.%d)
pkgrel=$(date +%H%M)
arch=('any')
license=('MIT')
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 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
}