blob: 3064e7f9f545992bac76fefcaf90f5ac456faaee (
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
|
# Maintainer: wackbyte <wackbyte@protonmail.com>
_pkgname=tarmac
pkgname=tarmac-git
pkgver=0.8.2.r0.g30292b7
pkgrel=1
pkgdesc='Command line tool to manage Roblox assets'
arch=('aarch64' 'arm' 'armv6h' 'armv7h' 'i686' 'x86_64')
url='https://github.com/Roblox/tarmac'
license=('MIT')
depends=('gcc-libs' 'glibc')
makedepends=('cargo' 'git')
provides=("${_pkgname}=${pkgver}")
conflicts=($_pkgname)
source=("${_pkgname}::git+${url}")
md5sums=('SKIP')
options=(!lto)
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd $_pkgname
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd $_pkgname
cargo build --frozen --release
}
check() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd $_pkgname
cargo test --frozen
}
package() {
cd $_pkgname
install -Dm755 -t "${pkgdir}/usr/bin" "target/release/${_pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" LICENSE.txt
}
|