build: add trackma package

This commit is contained in:
2026-06-13 05:12:52 +02:00
commit 4014ae66ac
6 changed files with 140 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
pkgbase = trackma
pkgdesc = A lightweight program for managing lists on media tracking websites
pkgver = 0.10.3
pkgrel = 1
url = https://z411.github.io/trackma/
arch = any
license = GPL-3.0-or-later
makedepends = desktop-file-utils
makedepends = python-build
makedepends = python-installer
makedepends = python-poetry-core
makedepends = python-wheel
depends = python
optdepends = gtk3: GTK frontend
optdepends = lsof: polling tracker
optdepends = python-anitopy-git: anitopy title parser
optdepends = python-cairo: GTK frontend
optdepends = python-gobject: GTK frontend
optdepends = python-jeepney: MPRIS media recognition tracker
optdepends = python-pillow: thumbnail images for GUI frontends
optdepends = python-pyinotify: instant media recognition tracker
optdepends = python-pypresence: Discord rich presence integration
optdepends = python-pyqt6: Qt frontend
optdepends = python-urwid: curses frontend
conflicts = trackma-git
source = trackma-0.10.3.tar.gz::https://github.com/z411/trackma/archive/refs/tags/v0.10.3.tar.gz
source = anime-relations-4a5549a43d14ffb268694c6821667fb47578e146.tar.gz::https://github.com/erengy/anime-relations/archive/4a5549a43d14ffb268694c6821667fb47578e146.tar.gz
source = trackma-curses.desktop
source = trackma-gtk.desktop
source = trackma-qt.desktop
sha256sums = ff15982555b377e63c36fc8d8964d210cdd79564ea633ecce22ca1796dcac41f
sha256sums = 1bd746482867391d1f332e5924e8ffec26ab024591b956bc54c5259ee75c6cf0
sha256sums = 8265fca3f9d18f2c97f4f578bb2fcc9bed8837845c2b7dccc2f020150ddf70c1
sha256sums = 564f219f64991a51fcfe3afebfe43198cb035aa3b20e1ef566c64ad2c55f09f5
sha256sums = 583c65eed9f25f13961eab62f1c7490cfea78e07c3747002d8edebef62a10564
pkgname = trackma
+7
View File
@@ -0,0 +1,7 @@
/pkg/
/src/
/anime-relations/
/trackma-[0-9]*/
/*.tar.gz
/*.tar.gz.part
/*.pkg.tar*
+69
View File
@@ -0,0 +1,69 @@
# Maintainer: Oscar Wallberg <oscar.wallberg@outlook.com>
pkgname=trackma
pkgver=0.10.3
pkgrel=1
_anime_relations_commit=4a5549a43d14ffb268694c6821667fb47578e146
pkgdesc="A lightweight program for managing lists on media tracking websites"
arch=('any')
url="https://z411.github.io/trackma/"
license=('GPL-3.0-or-later')
depends=('python')
makedepends=(
'desktop-file-utils'
'python-build'
'python-installer'
'python-poetry-core'
'python-wheel'
)
optdepends=(
'gtk3: GTK frontend'
'lsof: polling tracker'
'python-anitopy-git: anitopy title parser'
'python-cairo: GTK frontend'
'python-gobject: GTK frontend'
'python-jeepney: MPRIS media recognition tracker'
'python-pillow: thumbnail images for GUI frontends'
'python-pyinotify: instant media recognition tracker'
'python-pypresence: Discord rich presence integration'
'python-pyqt6: Qt frontend'
'python-urwid: curses frontend'
)
conflicts=('trackma-git')
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/z411/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
"anime-relations-${_anime_relations_commit}.tar.gz::https://github.com/erengy/anime-relations/archive/${_anime_relations_commit}.tar.gz"
"${pkgname}-curses.desktop"
"${pkgname}-gtk.desktop"
"${pkgname}-qt.desktop"
)
sha256sums=('ff15982555b377e63c36fc8d8964d210cdd79564ea633ecce22ca1796dcac41f'
'1bd746482867391d1f332e5924e8ffec26ab024591b956bc54c5259ee75c6cf0'
'8265fca3f9d18f2c97f4f578bb2fcc9bed8837845c2b7dccc2f020150ddf70c1'
'564f219f64991a51fcfe3afebfe43198cb035aa3b20e1ef566c64ad2c55f09f5'
'583c65eed9f25f13961eab62f1c7490cfea78e07c3747002d8edebef62a10564')
prepare() {
cd "${pkgname}-${pkgver}"
rm -rf "trackma/data/anime-relations"
cp -a "${srcdir}/anime-relations-${_anime_relations_commit}" "trackma/data/anime-relations"
}
build() {
cd "${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
rm -f "${pkgdir}"/usr/lib/python*/site-packages/trackma/trackma.kdev4
install -Dm644 "trackma/data/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
desktop-file-install --dir="${pkgdir}/usr/share/applications" \
"${srcdir}/${pkgname}-curses.desktop" \
"${srcdir}/${pkgname}-gtk.desktop" \
"${srcdir}/${pkgname}-qt.desktop"
}
+9
View File
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Trackma Curses
GenericName=Media list manager
Comment=Manage lists on media tracking websites
Exec=trackma-curses
Icon=trackma
Terminal=true
Categories=Network;
+9
View File
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Trackma GTK
GenericName=Media list manager
Comment=Manage lists on media tracking websites
Exec=trackma-gtk
Icon=trackma
Terminal=false
Categories=Network;
+9
View File
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Trackma Qt
GenericName=Media list manager
Comment=Manage lists on media tracking websites
Exec=trackma-qt
Icon=trackma
Terminal=false
Categories=Network;