# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=torrent-file-editor
pkgver=0.3.18
pkgrel=0
pkgdesc="Qt based GUI tool designed to create and edit .torrent files"
url="https://torrent-file-editor.github.io/"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	cmake
	qt6-qt5compat-dev
	qt6-qtbase-dev
	qt6-qttools-dev
	samurai
	"
source="https://github.com/torrent-file-editor/torrent-file-editor/releases/download/v$pkgver/torrent-file-editor-$pkgver.tar.gz"
options="!check" # no tests provided

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None \
		-DENABLE_PCH=OFF \
		-DQT6_BUILD=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
6e12a0422f142c2d8d53267ca3cb9e0df3f2295aca896859c3794c2be89318597d62e8f2862878a156c5a5529d950c36e524f9fe309447691871a2cf44c446ea  torrent-file-editor-0.3.18.tar.gz
"
