2.0.21.r4

This commit is contained in:
xiota 2026-02-22 01:44:21 +00:00
commit 1876e76bc4
3 changed files with 79 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = rats-search-qt6-git
pkgdesc = BitTorrent P2P multi-platform search engine with integrated torrent client
pkgver = 2.0.21.r4.g2872fbd
pkgrel = 1
url = https://github.com/DEgITx/rats-search
arch = x86_64
license = MIT
makedepends = cmake
makedepends = git
makedepends = ninja
makedepends = qt6-tools
depends = qt6-websockets
provides = rats-search
conflicts = rats-search
source = rats-search::git+https://github.com/DEgITx/rats-search.git
sha256sums = SKIP
pkgname = rats-search-qt6-git

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*
!PKGBUILD
!.SRCINFO
!.gitignore

57
PKGBUILD Normal file
View file

@ -0,0 +1,57 @@
# Maintainer:
_pkgname="rats-search"
pkgname="$_pkgname-qt6-git"
pkgver=2.0.21.r4.g2872fbd
pkgrel=1
pkgdesc="BitTorrent P2P multi-platform search engine with integrated torrent client"
url="https://github.com/DEgITx/rats-search"
license=("MIT")
arch=("x86_64")
depends=(
'qt6-websockets'
)
makedepends=(
'cmake'
'git'
'ninja'
'qt6-tools'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')
prepare() {
cd "$_pkgsrc"
git submodule update --init --depth=1
}
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$_pkgsrc/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}