summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e63e239ac1524f247db4194d2e94ac9006e4be4 (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
# Maintainer: Philipp Joram <mail at phijor dot me>

pkgname=pokefinder-git
pkgver=2.5.0.r4.g48ab194
pkgrel=1
pkgdesc='Cross platform Pokémon RNG tool'
arch=(x86_64)
url='https://github.com/Admiral-Fish/PokeFinder'
license=('GPL3')
depends=(
    'qt5-base'
)
makedepends=(
    'qt5-tools'
)
conflicts=('pokefinder')
provides=('pokefinder')

source=(
    "$pkgname::git+https://github.com/Admiral-Fish/PokeFinder.git"
)
sha256sums=(
    'SKIP'
)

pkgver() {
    cd "$pkgname"
    git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd "$srcdir/$pkgname"
    git submodule update --init

    qmake -config release PokeFinder.pro
}

build() {
    cd "$srcdir/$pkgname"
    make
}

package() {
    install -v -m755 -d "$pkgdir/usr/bin/"
    install -v -m755 "$srcdir/$pkgname/PokeFinder" "$pkgdir/usr/bin/pokefinder"
}