blob: 6506d9c45bc5b20d353688de7d114463e1332a1f (
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
|
# Maintainer: pinapelz <yukais@pinapelz.com>
pkgname=oxi-sapphire-launcher-git
pkgver=v0.2.0.r0.gabb5634
pkgrel=1
pkgdesc="A crossplatform CLI launcher for FFXIV Sapphire servers"
arch=('x86_64')
url="https://github.com/T00fy/oxi-sapphire-launcher"
license=('unknown')
makedepends=('git' 'cargo' 'unshield')
depends=('unshield')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/T00fy/oxi-sapphire-launcher.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/oxi-sapphire-launcher"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare(){
cd "$srcdir/oxi-sapphire-launcher"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/oxi-sapphire-launcher"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release
}
check() {
cd "$srcdir/oxi-sapphire-launcher"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd "$srcdir/oxi-sapphire-launcher"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}"
}
|