diff options
author | networkjanitor | 2020-05-02 00:39:43 +0200 |
---|---|---|
committer | networkjanitor | 2020-05-02 00:39:43 +0200 |
commit | f82edeb9fb0a4e1b07c0cc404625c37ffab05399 (patch) | |
tree | c8f98f21f5840c14c2b60742ea6c184540ee60a8 | |
parent | 768b20de3854502c6552bf4417c0cbafc7dec5e2 (diff) | |
download | aur-f82edeb9fb0a4e1b07c0cc404625c37ffab05399.tar.gz |
added check() and man page installation
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 20 insertions, 8 deletions
@@ -1,12 +1,14 @@ pkgbase = raidgrep-git pkgdesc = Guild Wars 2/arcdps evtc log searching tool. Build from master branch using the rust nightly toolchain. pkgver = 1.0.2.r8.g0d1898a - pkgrel = 1 + pkgrel = 2 url = https://gitlab.com/dunj3/raidgrep arch = x86_64 license = GPL makedepends = cargo makedepends = rustup + makedepends = git + makedepends = asciidoc depends = gcc-libs provides = raidgrep conflicts = raidgrep-bin @@ -2,14 +2,14 @@ pkgname=raidgrep-git _pkgname=raidgrep pkgver=1.0.2.r8.g0d1898a -pkgrel=1 +pkgrel=2 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') +makedepends=('cargo' 'rustup' 'git' 'asciidoc') depends=("gcc-libs") source=( "${_pkgname}::git+https://gitlab.com/dunj3/raidgrep.git#branch=master" @@ -17,20 +17,30 @@ source=( sha256sums=('SKIP') pkgver() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } -build() { - cd "${srcdir}/${_pkgname}" +prepare() { + cd "${_pkgname}" git submodule init && git submodule update rustup install nightly - cargo +nightly build --release +} + +build() { + cd "${_pkgname}" + cargo +nightly build --release + a2x -vv --no-xmllint -f manpage "${_pkgname}.1.asciidoc" +} +check() { + cd "${_pkgname}" + cargo +nightly test --release } package() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" install -Dm 755 "target/release/raidgrep" "${pkgdir}/usr/bin/${_pkgname}" + install -Dm 644 "${_pkgname}.1" "${pkgdir}/usr/share/man/man1/${_pkgname}.1" } |