summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02a627eb41e67f996c46fa5f5b8afbb83bc647ea (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
# Maintainer: networkjanitor <networkjanitor@xyooz.net>
pkgname=raidgrep-git
_pkgname=raidgrep
pkgver=1.0.2.r8.g0d1898a
pkgrel=1
pkgdesc="Guild Wars 2/arcdps evtc log searching tool. Build from master branch using the rust nightly toolchain."
arch=("x86_64")
url="https://gitlab.com/dunj3/raidgrep"
license=("GPL")
provides=("${_pkgname}")
conflicts=("${_pkgname}-bin" "${_pkgname}")
makedepends=('cargo' 'rustup')
depends=("gcc-libs")
source=(
    "${_pkgname}::git+https://gitlab.com/dunj3/raidgrep.git#branch=master"
)
sha256sums=('SKIP')

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

build() {
    cd "${srcdir}/${_pkgname}"
    git submodule init && git submodule update
    rustup install nightly
    cargo +nightly build --release 

}

package() {
    cd "${srcdir}/${_pkgname}"
    install -Dm 755 "target/release/raidgrep" "${pkgdir}/usr/bin/${_pkgname}"
}