ci: add Gitea Actions CI, tag releases and AUR PKGBUILDs
This commit is contained in:
1 parent
bcfc2f3f6a
commit
cda6352b07
7 files changed
+228
No files matched your search
@@ -0,0 +1,31 @@
|
||||
pkgbase = qtpotato-git
|
||||
pkgdesc = KDE video player built on mpv that translates subtitles with an LLM (development version)
|
||||
pkgver = 0.1.0
|
||||
pkgrel = 1
|
||||
url = https://git.trivk.dev/tri/QtPotato
|
||||
arch = x86_64
|
||||
license = GPL-3.0-or-later
|
||||
makedepends = git
|
||||
makedepends = cmake
|
||||
makedepends = ninja
|
||||
makedepends = extra-cmake-modules
|
||||
depends = qt6-base
|
||||
depends = qt6-declarative
|
||||
depends = kirigami
|
||||
depends = ki18n
|
||||
depends = kcoreaddons
|
||||
depends = kcrash
|
||||
depends = kconfig
|
||||
depends = mpvqt
|
||||
depends = qcoro
|
||||
depends = qtkeychain-qt6
|
||||
depends = ffmpeg
|
||||
depends = hicolor-icon-theme
|
||||
optdepends = qqc2-desktop-style: Plasma look for the interface
|
||||
optdepends = plasma-integration: Plasma file dialogs, colours and icons
|
||||
provides = qtpotato=0.1.0
|
||||
conflicts = qtpotato
|
||||
source = qtpotato::git+https://git.trivk.dev/tri/QtPotato.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = qtpotato-git
|
||||
@@ -0,0 +1,44 @@
|
||||
# Maintainer: Tri Vo Khac
|
||||
|
||||
pkgname=qtpotato-git
|
||||
_pkgname=qtpotato
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc='KDE video player built on mpv that translates subtitles with an LLM (development version)'
|
||||
arch=('x86_64')
|
||||
url='https://git.trivk.dev/tri/QtPotato'
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=('qt6-base' 'qt6-declarative' 'kirigami' 'ki18n' 'kcoreaddons' 'kcrash' 'kconfig'
|
||||
'mpvqt' 'qcoro' 'qtkeychain-qt6' 'ffmpeg' 'hicolor-icon-theme')
|
||||
makedepends=('git' 'cmake' 'ninja' 'extra-cmake-modules')
|
||||
optdepends=('qqc2-desktop-style: Plasma look for the interface'
|
||||
'plasma-integration: Plasma file dialogs, colours and icons')
|
||||
provides=("$_pkgname=$pkgver")
|
||||
conflicts=("$_pkgname")
|
||||
source=("$_pkgname::git+$url.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$_pkgname"
|
||||
if git describe --tags --long >/dev/null 2>&1; then
|
||||
git describe --tags --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
else
|
||||
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake -B build -S "$_pkgname" -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_TESTING=ON
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
QT_QPA_PLATFORM=offscreen ctest --test-dir build --output-on-failure
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
Reference in new issue
Block a user