blob: 36ba9dc4fe1f670aa9e380083c81e333f75e86f9 (
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: kojq <kojq@mailfence.com>
pkgname=dust-emu-git
_pkgname=dust
pkgver=r210.618a418
pkgrel=1
pkgdesc='A Nintendo DS emulator written in Rust for desktop devices and the web, with debugging features and a focus on accuracy'
url=https://github.com/kelpsyberry/dust
source=(git+https://github.com/kelpsyberry/dust)
license=(GPL-3.0)
arch=(x86_64)
options=(!lto)
depends=(alsa-lib)
makedepends=(git rustup)
conflicts=(dust-emu dust-emu-bin)
provides=(dust-emu)
sha256sums=(SKIP)
prepare() {
cd $_pkgname
rustup default nightly
cargo fetch --locked --target $CARCH-unknown-linux-gnu
}
pkgver() {
cd $_pkgname
printf r%s.%s $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}
build() {
cd $_pkgname
cargo build --frozen --profile ci --features=dldi --package dust-desktop
}
check() {
cd $_pkgname
cargo test --frozen --release --package dust-desktop
}
package() {
cd $_pkgname
install -Dm755 target/ci/dust-desktop -t $pkgdir/usr/bin
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$_pkgname/LICENSE
}
|