blob: 7ffc376d067407a0cb37dd927a5723363b8b1aae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Philipp Joram <mail at phijor dot me>
pkgname=pokefinder
pkgver=4.2.1
pkgrel=1
pkgdesc='Cross platform Pokémon RNG tool'
arch=(x86_64)
url='https://github.com/Admiral-Fish/PokeFinder'
license=('GPL-3.0-or-later')
depends=(
'qt6-base'
)
makedepends=(
'cmake'
'git'
'python'
'qt6-tools' # For Qt6Linguist
)
source=(
"$pkgname-$pkgver::git+https://github.com/Admiral-Fish/PokeFinder.git#tag=v$pkgver"
# Git submodules:
"git+https://gitlab.com/bzip2/bzip2"
"git+https://github.com/ColinDuquesnoy/QDarkStyleSheet"
"git+https://github.com/Admiral-Fish/EncounterTableGenerator"
)
sha256sums=('1189f0c76d4df177568c5bd6362aed6f75a9c68d99d0632f152cea96895d19a6'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# Initialize git submodules
git submodule init
git config submodule."External/bzip2".url "$srcdir/bzip2"
git config submodule."External/QDarkStyleSheet".url "$srcdir/QDarkStyleSheet"
git config submodule."Source/Core/Resources/EncounterTables".url "$srcdir/EncounterTableGenerator"
git -c protocol.file.allow=always submodule update
}
build() {
cmake -B build -S "$srcdir/$pkgname-$pkgver" -DCMAKE_BUILD_TYPE=RELEASE -DTEST=ON
cmake --build build
}
package() {
install -v -m755 -d "$pkgdir/usr/bin/"
install -v -m755 "build/Source/PokeFinder" "$pkgdir/usr/bin/pokefinder"
}
|